summaryrefslogtreecommitdiff
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:23:29 +0000
commit981912f29e54f6cacefe62ee2a24c38a227d0565 (patch)
tree9ec74aa511098b776679157d964b7a530d1031ee
parent40ae327867eb1d9f5538faeca26f00ffdf8e7058 (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 Conflicts: ext/sidplay/gstsiddec.cc
-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 4c18eec7..290f85a3 100644
--- a/ext/sidplay/gstsiddec.cc
+++ b/ext/sidplay/gstsiddec.cc
@@ -441,6 +441,7 @@ start_play_tune (GstSidDec * siddec)
gst_pad_push_event (siddec->srcpad,
gst_event_new_new_segment (FALSE, 1.0, GST_FORMAT_TIME, 0, -1, 0));
+ siddec->total_bytes = 0;
res = gst_pad_start_task (siddec->srcpad,
(GstTaskFunction) play_loop, siddec->srcpad);