diff options
author | Lennart Poettering <lennart@poettering.net> | 2008-08-04 15:33:41 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2008-08-04 15:33:41 +0200 |
commit | cd5afb80f791f10d82519aed6f9e4ffabea1b5c9 (patch) | |
tree | 3d51c2f5ee51cd7f446673f442b3a10846301882 /src/pulsecore | |
parent | 5f69b5d7fd84fbbd2db84178985db3ada11b683f (diff) |
don't hit an assert if when process_rewind() is called with nbytes=0
Diffstat (limited to 'src/pulsecore')
-rw-r--r-- | src/pulsecore/play-memblockq.c | 1 | ||||
-rw-r--r-- | src/pulsecore/sound-file-stream.c | 3 |
2 files changed, 0 insertions, 4 deletions
diff --git a/src/pulsecore/play-memblockq.c b/src/pulsecore/play-memblockq.c index 8b3e79b9..86edfe98 100644 --- a/src/pulsecore/play-memblockq.c +++ b/src/pulsecore/play-memblockq.c @@ -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); diff --git a/src/pulsecore/sound-file-stream.c b/src/pulsecore/sound-file-stream.c index 8eedf830..8b2a29b9 100644 --- a/src/pulsecore/sound-file-stream.c +++ b/src/pulsecore/sound-file-stream.c @@ -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; |