Fix bug with source audio

If the audio didn't start at the 0 timestamp, it would misinterpret it
as a timestamp jump because obs_source::next_audio_ts_min is set to 0 on
creation.  Timestamp starting values should be allowed to start at any
arbitrary value.
This commit is contained in:
jp9000 2014-08-28 18:24:54 -07:00
parent 3539932d86
commit 47570f4153

View File

@ -639,7 +639,7 @@ static void source_output_audio_line(obs_source_t source,
if ((source->timing_adjust + MAX_TS_VAR) < MAX_TS_VAR * 2)
source->timing_adjust = 0;
} else {
} else if (source->next_audio_ts_min != 0) {
bool ts_under = (in.timestamp < source->next_audio_ts_min);
diff = ts_under ?