pipewiresrc: actually use the fd when set

This commit is contained in:
Wim Taymans 2019-05-06 12:07:25 +02:00
parent e4be9837c4
commit 3f5b3b7cb1

View file

@ -996,7 +996,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);