libobs: Fix crash starting raw encoder before gpu encoder

Fixes a crash when starting a raw encoder before a GPU encoder.
This commit is contained in:
jp9000 2019-02-10 22:22:31 -08:00
parent 43f75ed02b
commit d416f781fd

View File

@ -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,