splitmuxpartreader: identify sparse streams

This commit is contained in:
George Kiagiadakis 2017-02-22 11:21:06 +02:00
parent 8635258046
commit 99728792cd

View file

@ -60,6 +60,7 @@ typedef struct _GstSplitMuxPartPad
gboolean flushing;
gboolean seen_buffer;
gboolean is_sparse;
GstClockTime max_ts;
GstSegment segment;
@ -341,6 +342,12 @@ splitmux_part_pad_event (GstPad * pad, GstObject * parent, GstEvent * event)
goto drop_event;
switch (GST_EVENT_TYPE (event)) {
case GST_EVENT_STREAM_START:{
GstStreamFlags flags;
gst_event_parse_stream_flags (event, &flags);
part_pad->is_sparse = (flags & GST_STREAM_FLAG_SPARSE);
break;
}
case GST_EVENT_SEGMENT:{
GstSegment *seg = &part_pad->segment;