mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-07 13:30:09 -05:00
protocol-native: don't try to flush when the source is gone
When the connection is broken, we destroy the source avoid trying to flush when the source is gone.
This commit is contained in:
parent
082463efd0
commit
e18ca6e9c8
1 changed files with 1 additions and 1 deletions
|
|
@ -671,7 +671,7 @@ static void on_need_flush(void *data)
|
|||
struct client *impl = data;
|
||||
struct pw_remote *remote = impl->this.remote;
|
||||
|
||||
if (!impl->flushing) {
|
||||
if (!impl->flushing && impl->source) {
|
||||
int mask = impl->source->mask;
|
||||
impl->flushing = true;
|
||||
SPA_FLAG_SET(mask, SPA_IO_OUT);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue