mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-18 15:51:11 +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
|
||||
* during trick mode */
|
||||
if (out_samples > written)
|
||||
if (out_samples > written) {
|
||||
out_samples -= written;
|
||||
else
|
||||
accum = 0;
|
||||
} else
|
||||
break;
|
||||
|
||||
samples -= written;
|
||||
|
|
Loading…
Reference in a new issue