Commit 42dee942 authored by Sebastian Dröge's avatar Sebastian Dröge
Browse files

decodebin2: Emit "remove-decoded-pad" signal when pads are removed from decodebin2

Fixes bug #636198.
parent 5f361059
...@@ -2346,9 +2346,12 @@ gst_decode_chain_free_internal (GstDecodeChain * chain, gboolean hide) ...@@ -2346,9 +2346,12 @@ gst_decode_chain_free_internal (GstDecodeChain * chain, gboolean hide)
} }
if (chain->endpad) { if (chain->endpad) {
if (chain->endpad->exposed) if (chain->endpad->exposed) {
gst_element_remove_pad (GST_ELEMENT_CAST (chain->dbin), gst_element_remove_pad (GST_ELEMENT_CAST (chain->dbin),
GST_PAD_CAST (chain->endpad)); 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); gst_ghost_pad_set_target (GST_GHOST_PAD_CAST (chain->endpad), NULL);
chain->endpad->exposed = FALSE; chain->endpad->exposed = FALSE;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment