baseaudiosink: reset accum when dropping samples

When we are resampling and we drop samples because we paused, reset the accum
counter because it's now invalid.
This commit is contained in:
Wim Taymans 2009-06-11 12:17:16 +02:00
parent c1bc55a4f5
commit 69b7fb3845

View file

@ -1511,9 +1511,10 @@ no_sync:
/* update the output samples. FIXME, this will just skip them when pausing
* during trick mode */
if (out_samples > written)
if (out_samples > written) {
out_samples -= written;
else
accum = 0;
} else
break;
samples -= written;