asfdemux: Store the accurate seeking flag
authorEdward Hervey <bilboed@bilboed.com>
Sun, 28 Jun 2009 15:42:44 +0000 (17:42 +0200)
committerEdward Hervey <bilboed@bilboed.com>
Sun, 28 Jun 2009 15:50:45 +0000 (17:50 +0200)
gst/asfdemux/gstasfdemux.c
gst/asfdemux/gstasfdemux.h

index 8300b0a..8124aca 100644 (file)
@@ -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");
index f0f6e51..c2b35ce 100644 (file)
@@ -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 */