gst_plugins_base/gst/playback/gstdecodebin2.c
changeset 35 e3187d58ca5e
parent 8 4a7fac7dd34a
--- a/gst_plugins_base/gst/playback/gstdecodebin2.c	Fri Sep 17 08:31:31 2010 +0300
+++ b/gst_plugins_base/gst/playback/gstdecodebin2.c	Mon Oct 04 00:35:59 2010 +0300
@@ -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);