siddec: reset bytes counter
authorWim Taymans <wim.taymans@collabora.co.uk>
Tue, 30 Oct 2012 09:20:04 +0000 (09:20 +0000)
committerWim Taymans <wim.taymans@collabora.co.uk>
Tue, 30 Oct 2012 09:20:04 +0000 (09:20 +0000)
Reset the total_bytes counter so that we get timestamps correct.

Fixes https://bugzilla.gnome.org/show_bug.cgi?id=686931

ext/sidplay/gstsiddec.cc

index 667f209979b71fbff90f78325d5489cb1afb033b..0f24f6603e7c35769e0845a97e7b6aff1865e1f8 100644 (file)
@@ -459,6 +459,7 @@ start_play_tune (GstSidDec * siddec)
 
   gst_segment_init (&segment, GST_FORMAT_TIME);
   gst_pad_push_event (siddec->srcpad, gst_event_new_segment (&segment));
+  siddec->total_bytes = 0;
 
   res = gst_pad_start_task (siddec->srcpad,
       (GstTaskFunction) play_loop, siddec->srcpad, NULL);