diff options
-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); |