parsebin: Put stream flags in GstStream

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/1082>
This commit is contained in:
Edward Hervey 2020-12-11 10:15:32 +01:00 committed by GStreamer Marge Bot
parent e15531bb9b
commit e39d57b374

View file

@ -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);
}