check for type register failures
authorDavid I. Lehn <dlehn@users.sourceforge.net>
Mon, 20 Jan 2003 18:22:00 +0000 (18:22 +0000)
committerDavid I. Lehn <dlehn@users.sourceforge.net>
Mon, 20 Jan 2003 18:22:00 +0000 (18:22 +0000)
Original commit message from CVS:
check for type register failures

common
ext/ffmpeg/gstffmpegenc.c

diff --git a/common b/common
index bbd74e9..50879a6 160000 (submodule)
--- a/common
+++ b/common
@@ -1 +1 @@
-Subproject commit bbd74e96ef37a7d437930f85f939a6a7d36dd012
+Subproject commit 50879a63c4fa8f2544d4d89a9dbfa0f5720c3266
index 7043896..f2237b4 100644 (file)
@@ -569,8 +569,9 @@ gst_ffmpegenc_register (GstPlugin *plugin)
       goto next;
     }
 
-    /* create the gtk type now */
+    /* create the glib type now */
     type = g_type_register_static(GST_TYPE_ELEMENT, type_name , &typeinfo, 0);
+    g_return_val_if_fail(type != 0, FALSE);
 
     /* construct the element details struct */
     details = g_new0 (GstElementDetails,1);