Browse Source

libobs: Fix paired audio encoder discarding one segment

On audio encoder startup, audio encoders paired with a video encoder
would unintentionally discard a single audio data segment, causing it to
be 1024 audio frames out of sync.
jp9000 8 years ago
parent
commit
2f04010a4a
1 changed files with 0 additions and 2 deletions
  1. 0 2
      libobs/obs-encoder.c

+ 0 - 2
libobs/obs-encoder.c

@@ -952,7 +952,6 @@ static bool buffer_audio(struct obs_encoder *encoder, struct audio_data *data)
 		/* use currently buffered audio instead */
 		if (v_start_ts < data->timestamp) {
 			start_from_buffer(encoder, v_start_ts);
-			goto skip_push;
 		}
 
 	} else if (!encoder->start_ts && !encoder->paired_encoder) {
@@ -962,7 +961,6 @@ static bool buffer_audio(struct obs_encoder *encoder, struct audio_data *data)
 fail:
 	push_back_audio(encoder, data, size, offset_size);
 
-skip_push:
 	profile_end(buffer_audio_name);
 	return success;
 }