From e6c6eefefbf1b119e7844870bb413ed3fce7d884 Mon Sep 17 00:00:00 2001 From: Edward Hervey Date: Sun, 28 Jun 2009 17:42:44 +0200 Subject: [PATCH] asfdemux: Store the accurate seeking flag --- gst/asfdemux/gstasfdemux.c | 4 +++- gst/asfdemux/gstasfdemux.h | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/gst/asfdemux/gstasfdemux.c b/gst/asfdemux/gstasfdemux.c index 8300b0a234..8124aca9df 100644 --- a/gst/asfdemux/gstasfdemux.c +++ b/gst/asfdemux/gstasfdemux.c @@ -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"); diff --git a/gst/asfdemux/gstasfdemux.h b/gst/asfdemux/gstasfdemux.h index f0f6e51bed..c2b35ce6fd 100644 --- a/gst/asfdemux/gstasfdemux.h +++ b/gst/asfdemux/gstasfdemux.h @@ -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 */