Skip to content

Commit

Permalink
parsebin: Put stream flags in GstStream
Browse files Browse the repository at this point in the history
  • Loading branch information
bilboed authored and GStreamer Marge Bot committed Mar 25, 2021
1 parent e15531b commit e39d57b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion gst/playback/gstparsebin.c
Expand Up @@ -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))
Expand Down Expand Up @@ -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);
}
Expand Down

0 comments on commit e39d57b

Please sign in to comment.