mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 18:21:04 +00:00
asfdemux: Store the accurate seeking flag
This commit is contained in:
parent
725da8579b
commit
e6c6eefefb
2 changed files with 4 additions and 1 deletions
|
@ -541,7 +541,8 @@ gst_asf_demux_handle_seek_event (GstASFDemux * demux, GstEvent * event)
|
|||
}
|
||||
|
||||
flush = ((flags & GST_SEEK_FLAG_FLUSH) == GST_SEEK_FLAG_FLUSH);
|
||||
accurate = ((flags & GST_SEEK_FLAG_ACCURATE) == GST_SEEK_FLAG_ACCURATE);
|
||||
demux->accurate =
|
||||
((flags & GST_SEEK_FLAG_ACCURATE) == GST_SEEK_FLAG_ACCURATE);
|
||||
keyunit_sync = ((flags & GST_SEEK_FLAG_KEY_UNIT) == GST_SEEK_FLAG_KEY_UNIT);
|
||||
|
||||
if (demux->streaming) {
|
||||
|
@ -3670,6 +3671,7 @@ gst_asf_demux_change_state (GstElement * element, GstStateChange transition)
|
|||
gst_segment_init (&demux->segment, GST_FORMAT_TIME);
|
||||
demux->need_newsegment = TRUE;
|
||||
demux->segment_running = FALSE;
|
||||
demux->accurate = FALSE;
|
||||
demux->adapter = gst_adapter_new ();
|
||||
demux->metadata = gst_caps_new_empty ();
|
||||
demux->global_metadata = gst_structure_empty_new ("metadata");
|
||||
|
|
|
@ -169,6 +169,7 @@ struct _GstASFDemux {
|
|||
gboolean broadcast;
|
||||
|
||||
GstSegment segment; /* configured play segment */
|
||||
gboolean accurate;
|
||||
|
||||
gboolean need_newsegment; /* do we need to send a new-segment event? */
|
||||
GstClockTime segment_ts; /* streaming; timestamp for segment start */
|
||||
|
|
Loading…
Reference in a new issue