mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-15 07:00:05 -05:00
gst: do a sync before disconnect
This makes sure we first nicely remove the stream from the server and then close the socket. If we don't do this, the disconnect might not have flushed out our disconnect and the server is left with a non-responsive node, especially if the disconnect on the core was done with a socket from the portal that is still open.
This commit is contained in:
parent
48dea3d5ea
commit
6eba010d38
4 changed files with 81 additions and 12 deletions
|
|
@ -77,6 +77,10 @@ struct _GstPipeWireSrc {
|
|||
|
||||
struct pw_context *context;
|
||||
struct pw_core *core;
|
||||
struct spa_hook core_listener;
|
||||
int last_error;
|
||||
int last_seq;
|
||||
int pending_seq;
|
||||
|
||||
struct pw_stream *stream;
|
||||
struct spa_hook stream_listener;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue