Explorar o código

libobs: Don't clear audio on ts jump (seamless loops)

There's technically no need to clear the audio data here, nor is there
any need to try to trick the timestamp in to a different position.  It
can simple just reset the audio timing.

Prevents a possible case where audio data might be deleted when it's not
necessary to delete any.
jp9000 %!s(int64=9) %!d(string=hai) anos
pai
achega
b86fdae4a8
Modificáronse 1 ficheiros con 0 adicións e 1 borrados
  1. 0 1
      libobs/obs-source.c

+ 0 - 1
libobs/obs-source.c

@@ -1162,7 +1162,6 @@ static void source_output_audio_data(obs_source_t *source,
 		           diff > MAX_TS_VAR) {
 			reset_audio_timing(source, data->timestamp,
 					os_time);
-			reset_audio_data(source, os_time);
 			in.timestamp = data->timestamp + source->timing_adjust;
 		}
 	}