فهرست منبع

libobs: Fix crash starting raw encoder before gpu encoder

Fixes a crash when starting a raw encoder before a GPU encoder.
jp9000 6 سال پیش
والد
کامیت
d416f781fd
1فایلهای تغییر یافته به همراه2 افزوده شده و 0 حذف شده
  1. 2 0
      libobs/obs-video.c

+ 2 - 0
libobs/obs-video.c

@@ -466,6 +466,8 @@ static void output_gpu_encoders(struct obs_core_video *video, bool raw_active,
 
 	if (!video->textures_converted[prev_texture])
 		goto end;
+	if (!video->vframe_info_buffer_gpu.size)
+		goto end;
 
 	struct obs_vframe_info vframe_info;
 	circlebuf_pop_front(&video->vframe_info_buffer_gpu, &vframe_info,