mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-10-31 22:25:33 -04:00
don't hit an assert if when process_rewind() is called with nbytes=0
This commit is contained in:
parent
5f69b5d7fd
commit
cd5afb80f7
2 changed files with 0 additions and 4 deletions
|
|
@ -146,7 +146,6 @@ static void sink_input_process_rewind_cb(pa_sink_input *i, size_t nbytes) {
|
|||
memblockq_stream *u;
|
||||
|
||||
pa_sink_input_assert_ref(i);
|
||||
pa_assert(nbytes > 0);
|
||||
u = MEMBLOCKQ_STREAM(i->userdata);
|
||||
memblockq_stream_assert_ref(u);
|
||||
|
||||
|
|
|
|||
|
|
@ -206,12 +206,9 @@ static void sink_input_process_rewind_cb(pa_sink_input *i, size_t nbytes) {
|
|||
file_stream *u;
|
||||
|
||||
pa_sink_input_assert_ref(i);
|
||||
pa_assert(nbytes > 0);
|
||||
u = FILE_STREAM(i->userdata);
|
||||
file_stream_assert_ref(u);
|
||||
|
||||
pa_log("backwards %lu", (unsigned long) nbytes);
|
||||
|
||||
if (!u->memblockq)
|
||||
return;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue