diff options
author | François Laignel <fengalin@free.fr> | 2020-10-10 17:26:42 +0200 |
---|---|---|
committer | François Laignel <fengalin@free.fr> | 2020-10-10 18:00:04 +0200 |
commit | 40fde5fcad0bcdb5429d7bf573690cfe55fc79c8 (patch) | |
tree | bd170f361e328d700b117cb4cd435d6440781b2e /gst/playback | |
parent | a6ed17c273f1c11f1a80f53e2ce1364dcbe25c0c (diff) | |
download | gstreamer-plugins-base-40fde5fcad0bcdb5429d7bf573690cfe55fc79c8.tar.gz |
decodebin3: only force streams-selected seqnum after a select-streams
The initial streams-selected message might not match any select-streams,
in which case it is currently overriden with GST_SEQNUM_INVALID.
Related to:
- https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/-/merge_requests/601
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/860>
Diffstat (limited to 'gst/playback')
-rw-r--r-- | gst/playback/gstdecodebin3.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gst/playback/gstdecodebin3.c b/gst/playback/gstdecodebin3.c index 1a8422001..1ab95440d 100644 --- a/gst/playback/gstdecodebin3.c +++ b/gst/playback/gstdecodebin3.c @@ -1625,7 +1625,9 @@ is_selection_done (GstDecodebin3 * dbin) /* We are completely active */ msg = gst_message_new_streams_selected ((GstObject *) dbin, dbin->collection); - GST_MESSAGE_SEQNUM (msg) = dbin->select_streams_seqnum; + if (dbin->select_streams_seqnum != GST_SEQNUM_INVALID) { + gst_message_set_seqnum (msg, dbin->select_streams_seqnum); + } for (tmp = dbin->output_streams; tmp; tmp = tmp->next) { DecodebinOutputStream *output = (DecodebinOutputStream *) tmp->data; if (output->slot) { |