summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorWim Taymans <wim.taymans@collabora.co.uk>2012-10-30 09:20:04 +0000
committerWim Taymans <wim.taymans@collabora.co.uk>2012-10-30 09:20:04 +0000
commitb979e19af7d8c21dbd0ce3368f1652bc25e22898 (patch)
treeacf1f49eaa3c33b109bbf1f807d7c473dcf736b3 /ext
parenta87cd04ee24b1c62c180bee9d920b96043c31dbd (diff)
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
Diffstat (limited to 'ext')
-rw-r--r--ext/sidplay/gstsiddec.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/sidplay/gstsiddec.cc b/ext/sidplay/gstsiddec.cc
index 667f2099..0f24f660 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);