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
This commit is contained in:
Wim Taymans 2012-10-30 09:20:04 +00:00
parent a87cd04ee2
commit b979e19af7

View 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);