Browse Source

libobs: Use da_clear() to clear obs_core_data::sources_to_tick

Makes it a bit more clear what's going on
Lain 2 years ago
parent
commit
1aed7ed114
1 changed files with 1 additions and 1 deletions
  1. 1 1
      libobs/obs-video.c

+ 1 - 1
libobs/obs-video.c

@@ -58,7 +58,7 @@ static uint64_t tick_sources(uint64_t cur_time, uint64_t last_time)
 	/* ------------------------------------- */
 	/* get an array of all sources to tick   */
 
-	data->sources_to_tick.num = 0;
+	da_clear(data->sources_to_tick);
 
 	pthread_mutex_lock(&data->sources_mutex);