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.
This commit is contained in:
jp9000
2016-02-03 11:29:09 -08:00
parent 78db7ebc00
commit b86fdae4a8

View File

@@ -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;
}
}