فهرست منبع

libobs: Remove unnecessary audio reset code

This code causes audio data in general to be reset (and subsequently
deleted).  It should just be marked as pending and ignored until the
data is ready.  The discard_if_stopped function will serve the same
purpose if the source's audio has actually stopped.
jp9000 9 سال پیش
والد
کامیت
cded9cb1ca
1فایلهای تغییر یافته به همراه0 افزوده شده و 5 حذف شده
  1. 0 5
      libobs/obs-audio.c

+ 0 - 5
libobs/obs-audio.c

@@ -293,11 +293,6 @@ static bool audio_buffer_insuffient(struct obs_source *source,
 
 	if (source->audio_input_buf[0].size < size) {
 		source->audio_pending = true;
-		source->audio_ts = 0;
-		source->timing_adjust = 0;
-		source->timing_set = false;
-		source->next_audio_ts_min = 0;
-		source->next_audio_sys_ts_min = 0;
 		return true;
 	}