decodebin2: Emit "remove-decoded-pad" signal when pads are removed from decodebin2
authorSebastian Dröge <sebastian.droege@collabora.co.uk>
Sat, 11 Dec 2010 16:14:36 +0000 (17:14 +0100)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Sat, 11 Dec 2010 16:15:28 +0000 (17:15 +0100)
Fixes bug #636198.

gst/playback/gstdecodebin2.c

index fbdfce0..c4be4af 100644 (file)
@@ -2346,9 +2346,12 @@ gst_decode_chain_free_internal (GstDecodeChain * chain, gboolean hide)
   }
 
   if (chain->endpad) {
-    if (chain->endpad->exposed)
+    if (chain->endpad->exposed) {
       gst_element_remove_pad (GST_ELEMENT_CAST (chain->dbin),
           GST_PAD_CAST (chain->endpad));
+      g_signal_emit (G_OBJECT (chain->dbin),
+          gst_decode_bin_signals[SIGNAL_REMOVED_DECODED_PAD], 0, chain->endpad);
+    }
 
     gst_ghost_pad_set_target (GST_GHOST_PAD_CAST (chain->endpad), NULL);
     chain->endpad->exposed = FALSE;