Skip to content
Snippets Groups Projects
Commit beecec04 authored by Thomas Guillem's avatar Thomas Guillem
Browse files

pipewire: don't drain empty streams

Fixes the following assert when seeking more than one time past the end of
the file.

src/audio_output/dec.c:1107: vlc_aout_stream_Drain: Assertion `!atomic_load_explicit(&stream->drained, memory_order_relaxed)' failed.

Calling `pw_stream_flush(s->stream, true)`, when empty, leads to
undefined behavior and might cause the `stream_drained()` callback to be
called in loop (leading to the mentioned assert after a flush).
parent 3a325614
Loading
Pipeline #563374 passed with stage
in 2 minutes and 1 second
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment