mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-02 04:22:27 +00:00
decodebin2: activate ghost pad before targetting
Activate the decodebin2 pad before setting the target. This makes sure that the events are copied.
This commit is contained in:
parent
2e84acce58
commit
65e492a403
1 changed files with 1 additions and 0 deletions
|
@ -1491,6 +1491,7 @@ analyze_new_pad (GstDecodeBin * dbin, GstElement * src, GstPad * pad,
|
||||||
chain->current_pad = gst_decode_pad_new (dbin, chain);
|
chain->current_pad = gst_decode_pad_new (dbin, chain);
|
||||||
|
|
||||||
dpad = gst_object_ref (chain->current_pad);
|
dpad = gst_object_ref (chain->current_pad);
|
||||||
|
gst_pad_set_active (GST_PAD_CAST (dpad), TRUE);
|
||||||
gst_ghost_pad_set_target (GST_GHOST_PAD_CAST (dpad), pad);
|
gst_ghost_pad_set_target (GST_GHOST_PAD_CAST (dpad), pad);
|
||||||
|
|
||||||
/* 1. Emit 'autoplug-continue' the result will tell us if this pads needs
|
/* 1. Emit 'autoplug-continue' the result will tell us if this pads needs
|
||||||
|
|
Loading…
Reference in a new issue