瀏覽代碼

obs-ffmpeg: Remove unbuffered mode from media source

Unbuffered mode is causing the frames of media sources to potentially
have some slight jitter in playback, so instead of using unbuffered mode
with media sources, just leave buffering on.  There may be a frame or so
of latency, but it shouldn't be noticeable to most users.
jp9000 6 年之前
父節點
當前提交
89586ef441
共有 1 個文件被更改,包括 0 次插入4 次删除
  1. 0 4
      plugins/obs-ffmpeg/obs-ffmpeg-source.c

+ 0 - 4
plugins/obs-ffmpeg/obs-ffmpeg-source.c

@@ -318,16 +318,12 @@ static void ffmpeg_source_update(void *data, obs_data_t *settings)
 		s->is_looping = obs_data_get_bool(settings, "looping");
 		s->close_when_inactive =
 			obs_data_get_bool(settings, "close_when_inactive");
-
-		obs_source_set_async_unbuffered(s->source, true);
 	} else {
 		input = (char *)obs_data_get_string(settings, "input");
 		input_format =
 			(char *)obs_data_get_string(settings, "input_format");
 		s->is_looping = false;
 		s->close_when_inactive = true;
-
-		obs_source_set_async_unbuffered(s->source, false);
 	}
 
 	s->input = input ? bstrdup(input) : NULL;