diff options
author | Wim Taymans <wtaymans@redhat.com> | 2019-05-06 12:07:25 +0200 |
---|---|---|
committer | Wim Taymans <wtaymans@redhat.com> | 2019-05-06 12:07:25 +0200 |
commit | 3f5b3b7cb1d84e6ded4b02dafb79ea0e245440e8 (patch) | |
tree | 0ca07f9f9b7ff80977af22ff80c6a56041f9e325 | |
parent | e4be9837c4ff2de0e4a2818fc672c61e9cdae9f0 (diff) |
pipewiresrc: actually use the fd when set
-rw-r--r-- | src/gst/gstpipewiresrc.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/gst/gstpipewiresrc.c b/src/gst/gstpipewiresrc.c index 9d505fff..9458a23c 100644 --- a/src/gst/gstpipewiresrc.c +++ b/src/gst/gstpipewiresrc.c @@ -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); |