From b86fdae4a8847a123ad7cba90ca7b4cd3b7b4359 Mon Sep 17 00:00:00 2001 From: jp9000 Date: Wed, 3 Feb 2016 11:29:09 -0800 Subject: [PATCH] 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. --- libobs/obs-source.c | 1 - 1 file changed, 1 deletion(-) diff --git a/libobs/obs-source.c b/libobs/obs-source.c index b5ae5f15a..f945072ae 100644 --- a/libobs/obs-source.c +++ b/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; } }