Pārlūkot izejas kodu

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 9 gadi atpakaļ
vecāks
revīzija
b86fdae4a8
1 mainītis faili ar 0 papildinājumiem un 1 dzēšanām
  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;
 		}
 	}