Skip to content

Commit

Permalink
Set default apps data array
Browse files Browse the repository at this point in the history
Otherwise obs_data_get_array returns NULL and no new entries could be added unless the + in the UI was used
  • Loading branch information
dimtpap committed Jul 16, 2024
1 parent b70cc15 commit add302b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/pipewire-audio-capture-app.c
Original file line number Diff line number Diff line change
Expand Up @@ -814,6 +814,10 @@ static void pipewire_audio_capture_app_defaults(obs_data_t *settings)
{
obs_data_set_default_int(settings, "MatchPriority", BINARY_NAME);
obs_data_set_default_bool(settings, "ExceptApp", false);

obs_data_array_t *apps = obs_data_array_create();
obs_data_set_default_array(settings, "apps", apps);
obs_data_array_release(apps);
}

static int cmp_targets(const void *a, const void *b)
Expand Down

0 comments on commit add302b

Please sign in to comment.