Commit e39d57b3 authored by Edward Hervey's avatar Edward Hervey Committed by GStreamer Marge Bot

parsebin: Put stream flags in GstStream

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/1082>
parent e15531bb
......@@ -3932,8 +3932,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))
......@@ -3968,7 +3970,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);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment