mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-13 10:55:34 +00:00
baseaudiosink: fix a small glitch after pause
After we pause the stream and interrupt the writeout to the ringbuffer, also adjust the amount of output samples we consumed. We can't do this reliably with the current API when we are doing trick modes but we can do the right thing for normal playback.
This commit is contained in:
parent
509256dce5
commit
cae2981f83
1 changed files with 7 additions and 0 deletions
|
@ -1495,6 +1495,13 @@ no_sync:
|
|||
* be aligned to this one */
|
||||
align_next = FALSE;
|
||||
|
||||
/* update the output samples. FIXME, this will just skip them when pausing
|
||||
* during trick mode */
|
||||
if (out_samples > written)
|
||||
out_samples -= written;
|
||||
else
|
||||
break;
|
||||
|
||||
samples -= written;
|
||||
data += written * bps;
|
||||
} while (TRUE);
|
||||
|
|
Loading…
Reference in a new issue