Skip to content

Commit

Permalink
Don't clear set target ID if it's the default device ID
Browse files Browse the repository at this point in the history
  • Loading branch information
dimtpap committed Feb 2, 2022
1 parent 435f729 commit 47e8c6c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pipewire-input.c
Original file line number Diff line number Diff line change
Expand Up @@ -438,7 +438,9 @@ pipewire_capture_create(obs_data_t *settings, obs_source_t *source,
lpwa->capture_type = capture_type;
da_init(lpwa->nodes_arr);

obs_data_set_int(settings, LPWA_TARGET_ID, 0);
if (obs_data_get_int(settings, LPWA_TARGET_ID) != PW_ID_ANY)
obs_data_set_int(settings, LPWA_TARGET_ID, 0);

lpwa->pw_target_name =
bstrdup(obs_data_get_string(settings, LPWA_TARGET_NAME));

Expand Down

0 comments on commit 47e8c6c

Please sign in to comment.