瀏覽代碼

Fix a bug where audio would not restart (outputs)

Apparently I unintentionally typed received_video = false twice instead
of one for video and one for audio.

This fixes a bug where audio would not start up again on an output that
had recently started and then stopped.
jp9000 11 年之前
父節點
當前提交
e4629978e8
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      libobs/obs-output.c

+ 1 - 1
libobs/obs-output.c

@@ -696,7 +696,7 @@ static void hook_data_capture(struct obs_output *output, bool encoded,
 	void (*encoded_callback)(void *data, struct encoder_packet *packet);
 
 	if (encoded) {
-		output->received_video   = false;
+		output->received_audio   = false;
 		output->received_video   = false;
 		output->highest_audio_ts = 0;
 		output->highest_video_ts = 0;