From b979e19af7d8c21dbd0ce3368f1652bc25e22898 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Tue, 30 Oct 2012 09:20:04 +0000 Subject: [PATCH] siddec: reset bytes counter 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 | 1 + 1 file changed, 1 insertion(+) diff --git a/ext/sidplay/gstsiddec.cc b/ext/sidplay/gstsiddec.cc index 667f209979..0f24f6603e 100644 --- a/ext/sidplay/gstsiddec.cc +++ b/ext/sidplay/gstsiddec.cc @@ -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);