(V4L2) Check if raw_framebuffer_cb is not NULL

This commit is contained in:
twinaphex 2013-11-15 01:19:54 +01:00
parent 3c70302fb6
commit 1d067b9148

View File

@ -492,7 +492,8 @@ static bool v4l_poll(void *data, retro_camera_frame_raw_framebuffer_t frame_raw_
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;
}
else