check for type register failures

Original commit message from CVS:
check for type register failures
This commit is contained in:
David I. Lehn 2003-01-20 18:22:00 +00:00
parent ee27cce6f3
commit 3a0476127a
2 changed files with 3 additions and 2 deletions

2
common

@ -1 +1 @@
Subproject commit bbd74e96ef37a7d437930f85f939a6a7d36dd012
Subproject commit 50879a63c4fa8f2544d4d89a9dbfa0f5720c3266

View 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);