mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-18 13:25:56 +00:00
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:
parent
c1bc55a4f5
commit
69b7fb3845
1 changed files with 3 additions and 2 deletions
|
@ -1511,9 +1511,10 @@ no_sync:
|
||||||
|
|
||||||
/* update the output samples. FIXME, this will just skip them when pausing
|
/* update the output samples. FIXME, this will just skip them when pausing
|
||||||
* during trick mode */
|
* during trick mode */
|
||||||
if (out_samples > written)
|
if (out_samples > written) {
|
||||||
out_samples -= written;
|
out_samples -= written;
|
||||||
else
|
accum = 0;
|
||||||
|
} else
|
||||||
break;
|
break;
|
||||||
|
|
||||||
samples -= written;
|
samples -= written;
|
||||||
|
|
Loading…
Reference in a new issue