Bläddra i källkod

libobs: Fix debug spam from maxed buffering

When audio buffering is maxed, certain sources will always repeat the
same debug logging message of "render audio source [name] has gone
backwards", which shouldn't apply if the audio timestamp is 0 rather
than a valid audio value.
jp9000 3 år sedan
förälder
incheckning
090613851e
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1 1
      libobs/obs-audio.c

+ 1 - 1
libobs/obs-audio.c

@@ -577,7 +577,7 @@ bool audio_callback(void *param, uint64_t start_ts_in, uint64_t end_ts_in,
 
 		/* if a source has gone backward in time and we can no
 		 * longer buffer, drop some or all of its audio */
-		if (audio_buffering_maxed(audio) &&
+		if (audio_buffering_maxed(audio) && source->audio_ts != 0 &&
 		    source->audio_ts < ts.start) {
 			if (source->info.audio_render) {
 				blog(LOG_DEBUG,