mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-07 13:30:09 -05:00
pipewiresrc: actually use the fd when set
This commit is contained in:
parent
b01858931c
commit
9a842e4643
1 changed files with 4 additions and 1 deletions
|
|
@ -978,7 +978,10 @@ gst_pipewire_src_open (GstPipeWireSrc * pwsrc)
|
|||
&pwsrc->remote_listener,
|
||||
&remote_events, pwsrc);
|
||||
|
||||
pw_remote_connect (pwsrc->remote);
|
||||
if (pwsrc->fd == -1)
|
||||
pw_remote_connect (pwsrc->remote);
|
||||
else
|
||||
pw_remote_connect_fd (pwsrc->remote, pwsrc->fd);
|
||||
|
||||
while (TRUE) {
|
||||
enum pw_remote_state state = pw_remote_get_state(pwsrc->remote, &error);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue