gst_plugins_base/gst/playback/gstdecodebin2.c
changeset 34 1b8125c02661
parent 16 8e837d1bf446
--- a/gst_plugins_base/gst/playback/gstdecodebin2.c	Fri Sep 03 19:47:02 2010 -0500
+++ b/gst_plugins_base/gst/playback/gstdecodebin2.c	Tue Sep 21 11:28:48 2010 -0500
@@ -630,7 +630,8 @@
 
     /* get the sinkpad */
     pad = gst_element_get_static_pad (decode_bin->typefind, "sink");
-
+    g_return_if_fail (pad != NULL);
+    
     /* ghost the sink pad to ourself */
     gpad = gst_ghost_pad_new ("sink", pad);
     gst_pad_set_active (gpad, TRUE);