mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-30 12:49:40 +00:00
decodebin2: Emit "remove-decoded-pad" signal when pads are removed from decodebin2
Fixes bug #636198.
This commit is contained in:
parent
5f36105915
commit
42dee942d4
1 changed files with 4 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue