From 89dddaf9f0c7b08b622034f7d69feb56c359edd5 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Fri, 19 May 2017 01:19:28 +0200 Subject: [PATCH] Cleanups --- gfx/video_driver.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/gfx/video_driver.c b/gfx/video_driver.c index c745f72c77..765fe852e3 100644 --- a/gfx/video_driver.c +++ b/gfx/video_driver.c @@ -2343,11 +2343,10 @@ void video_driver_frame(const void *data, unsigned width, && msg) strlcpy(video_driver_msg, msg, sizeof(video_driver_msg)); - if (!current_video || !current_video->frame( - video_driver_data, data, width, height, - video_driver_frame_count, - (unsigned)pitch, video_driver_msg, &video_info)) - video_driver_active = false; + video_driver_active = current_video->frame( + video_driver_data, data, width, height, + video_driver_frame_count, + (unsigned)pitch, video_driver_msg, &video_info); video_driver_frame_count++;