Browse Source

libobs: Fix another group id comparison

Fixes a group id comparison where it was comparing the pointer of the
group name rather than the string contents itself, causing it to treat
it as a non-group source.
jp9000 5 years ago
parent
commit
39d8ea235c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      libobs/obs.c

+ 1 - 1
libobs/obs.c

@@ -1504,7 +1504,7 @@ void obs_enum_sources(bool (*enum_proc)(void *, obs_source_t *), void *param)
 		obs_source_t *next_source =
 			(obs_source_t *)source->context.next;
 
-		if (source->info.id == group_info.id &&
+		if (strcmp(source->info.id, group_info.id) == 0 &&
 		    !enum_proc(param, source)) {
 			break;
 		} else if (source->info.type == OBS_SOURCE_TYPE_INPUT &&