diff options
author | Vincent Penquerc'h <vincent.penquerch@collabora.co.uk> | 2013-02-14 15:59:51 +0000 |
---|---|---|
committer | Vincent Penquerc'h <vincent.penquerch@collabora.co.uk> | 2013-02-14 16:40:14 +0000 |
commit | 28bc46e1d15e29ea32f84551b5fb47564bb75eb0 (patch) | |
tree | 6a129e3ebf3fd5402d3e00339885aa0b6febdd91 | |
parent | ba5f0d8afc544160d1012f9db5a62c1d2ff934e3 (diff) | |
download | gstreamer-plugins-base-28bc46e1d15e29ea32f84551b5fb47564bb75eb0.tar.gz |
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).
-rw-r--r-- | gst/encoding/gstencodebin.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gst/encoding/gstencodebin.c b/gst/encoding/gstencodebin.c index c05ac9ba9..66b4c063f 100644 --- a/gst/encoding/gstencodebin.c +++ b/gst/encoding/gstencodebin.c @@ -500,6 +500,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); } |