mirror of
https://github.com/libretro/RetroArch
synced 2025-04-16 08:43:10 +00:00
(V4L2) Check if raw_framebuffer_cb is not NULL
This commit is contained in:
parent
3c70302fb6
commit
1d067b9148
@ -492,7 +492,8 @@ static bool v4l_poll(void *data, retro_camera_frame_raw_framebuffer_t frame_raw_
|
|||||||
|
|
||||||
if (preprocess_image(data))
|
if (preprocess_image(data))
|
||||||
{
|
{
|
||||||
frame_raw_cb(buffer_output, v4l->width, v4l->height, v4l->width);
|
if (frame_raw_cb != NULL)
|
||||||
|
frame_raw_cb(buffer_output, v4l->width, v4l->height, v4l->width);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user