summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEdward Hervey <edward@centricular.com>2020-12-11 10:15:32 +0100
committerTim-Philipp Müller <tim@centricular.com>2021-03-25 16:01:00 +0000
commit64fa797ce57237ec4f527e1746a2067cfa05937d (patch)
tree7da7d75faaa7311c5f86ca464f6f2eca934535b1
parentdc1fe07687747f11be6bb0eb944d53efa82ef86c (diff)
downloadgstreamer-plugins-base-64fa797ce57237ec4f527e1746a2067cfa05937d.tar.gz
parsebin: Put stream flags in GstStream
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/1086>
-rw-r--r--gst/playback/gstparsebin.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gst/playback/gstparsebin.c b/gst/playback/gstparsebin.c
index 4f9f8b6ba..031fc2401 100644
--- a/gst/playback/gstparsebin.c
+++ b/gst/playback/gstparsebin.c
@@ -3953,8 +3953,10 @@ gst_parse_pad_stream_start_event (GstParsePad * parsepad, GstEvent * event)
GstStream *stream = NULL;
const gchar *stream_id = NULL;
gboolean repeat_event = FALSE;
+ GstStreamFlags streamflags;
gst_event_parse_stream_start (event, &stream_id);
+ gst_event_parse_stream_flags (event, &streamflags);
if (parsepad->active_stream != NULL &&
g_str_equal (parsepad->active_stream->stream_id, stream_id))
@@ -3989,7 +3991,7 @@ gst_parse_pad_stream_start_event (GstParsePad * parsepad, GstEvent * event)
} else {
stream =
gst_stream_new (stream_id, NULL, GST_STREAM_TYPE_UNKNOWN,
- GST_STREAM_FLAG_NONE);
+ streamflags);
gst_object_replace ((GstObject **) & parsepad->active_stream,
(GstObject *) stream);
}