Fix Bug #610786 - support for GError types in seed_gi_argument_make_js
authoralan <alan@alanfast.akbkhome.com>
Wed, 24 Feb 2010 04:49:58 +0000 (12:49 +0800)
committeralan <alan@alanfast.akbkhome.com>
Wed, 24 Feb 2010 04:49:58 +0000 (12:49 +0800)
Used by gst_message_parse_error() - turns gerror into non-thrown exception

libseed/seed-types.c

index e4316bd..97f448d 100644 (file)
@@ -923,6 +923,12 @@ seed_gi_argument_make_js (JSContextRef ctx,
          }
        return ret;
       }
+    case GI_TYPE_TAG_ERROR:
+      {
+        JSValueRef ret;
+        seed_make_exception_from_gerror (ctx, &ret, (GError*) arg->v_pointer);
+        return ret;
+      }
 
     default:
       return FALSE;