From: David I. Lehn Date: Mon, 20 Jan 2003 18:22:00 +0000 (+0000) Subject: check for type register failures X-Git-Tag: OSLOSUMMIT1-200303051~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3a0476127ad11e6b7101a8e9e2a89e8cdd502af2;p=platform%2Fupstream%2Fgst-libav.git check for type register failures Original commit message from CVS: check for type register failures --- diff --git a/common b/common index bbd74e9..50879a6 160000 --- a/common +++ b/common @@ -1 +1 @@ -Subproject commit bbd74e96ef37a7d437930f85f939a6a7d36dd012 +Subproject commit 50879a63c4fa8f2544d4d89a9dbfa0f5720c3266 diff --git a/ext/ffmpeg/gstffmpegenc.c b/ext/ffmpeg/gstffmpegenc.c index 7043896..f2237b4 100644 --- a/ext/ffmpeg/gstffmpegenc.c +++ b/ext/ffmpeg/gstffmpegenc.c @@ -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);