gst_plugins_base/gst/playback/gstdecodebin.c
changeset 35 e3187d58ca5e
parent 8 4a7fac7dd34a
equal deleted inserted replaced
33:ec10aa4a09b0 35:e3187d58ca5e
   398       decode_bin->typefind = NULL;
   398       decode_bin->typefind = NULL;
   399     }
   399     }
   400 
   400 
   401     /* get the sinkpad */
   401     /* get the sinkpad */
   402     pad = gst_element_get_static_pad (decode_bin->typefind, "sink");
   402     pad = gst_element_get_static_pad (decode_bin->typefind, "sink");
       
   403     g_return_if_fail (pad != NULL);
   403 
   404 
   404     /* ghost the sink pad to ourself */
   405     /* ghost the sink pad to ourself */
   405     gpad = gst_ghost_pad_new ("sink", pad);
   406     gpad = gst_ghost_pad_new ("sink", pad);
   406     gst_pad_set_active (gpad, TRUE);
   407     gst_pad_set_active (gpad, TRUE);
   407     gst_element_add_pad (GST_ELEMENT (decode_bin), gpad);
   408     gst_element_add_pad (GST_ELEMENT (decode_bin), gpad);