summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWim Taymans <wtaymans@redhat.com>2019-05-06 12:07:25 +0200
committerWim Taymans <wtaymans@redhat.com>2019-05-06 12:07:25 +0200
commit3f5b3b7cb1d84e6ded4b02dafb79ea0e245440e8 (patch)
tree0ca07f9f9b7ff80977af22ff80c6a56041f9e325
parente4be9837c4ff2de0e4a2818fc672c61e9cdae9f0 (diff)
pipewiresrc: actually use the fd when set
-rw-r--r--src/gst/gstpipewiresrc.c5
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);