mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-26 19:51:11 +00:00
splitmuxpartreader: identify sparse streams
This commit is contained in:
parent
8635258046
commit
99728792cd
1 changed files with 7 additions and 0 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue