mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 14:26:43 +00:00
encodebin: activate ghost pad after creating it
This ensures the ghost pad will not stay in flushing mode when it receives a flush stop event, and generally behave badly. This fixes at least one case of a dynamic decodebin2 + encodebin pipeline finding a source that has not prerolled when it should have been (due to the ghostpad staying in flushing mode).
This commit is contained in:
parent
1e5b50e94c
commit
bccfc679b5
1 changed files with 1 additions and 0 deletions
|
@ -494,6 +494,7 @@ gst_encode_bin_init (GstEncodeBin * encode_bin)
|
|||
tmpl = gst_static_pad_template_get (&muxer_src_template);
|
||||
encode_bin->srcpad = gst_ghost_pad_new_no_target_from_template ("src", tmpl);
|
||||
gst_object_unref (tmpl);
|
||||
gst_pad_set_active (encode_bin->srcpad, TRUE);
|
||||
gst_element_add_pad (GST_ELEMENT_CAST (encode_bin), encode_bin->srcpad);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue