pipewiresrc: actually use the fd when set

This commit is contained in:
Wim Taymans 2019-05-06 12:07:25 +02:00
parent b01858931c
commit 9a842e4643

View file

@ -978,7 +978,10 @@ gst_pipewire_src_open (GstPipeWireSrc * pwsrc)
&pwsrc->remote_listener,
&remote_events, pwsrc);
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);