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:
parent
43f75ed02b
commit
d416f781fd
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user