Skip to content

Commit e1f991a

Browse files
committed
vcap/pipewire: Fix screen capture
1 parent 98304e7 commit e1f991a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/video_capture/pipewire.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -423,7 +423,7 @@ static int start_pipewire(vcap_pw_state *s)
423423
auto flags = PW_STREAM_FLAG_MAP_BUFFERS |
424424
PW_STREAM_FLAG_DONT_RECONNECT;
425425

426-
if(!s->user_options.target.empty()){
426+
if(!s->user_options.target.empty() || s->mode == vcap_pw_state::Mode::Screen_capture){
427427
flags |= PW_STREAM_FLAG_AUTOCONNECT;
428428
}
429429

0 commit comments

Comments
 (0)