From fbcefd02b93283db3aa6bec215b318140664886e Mon Sep 17 00:00:00 2001 From: twinaphex Date: Sun, 6 Nov 2016 14:05:00 +0100 Subject: [PATCH] (video_driver.c) Copy message if runloop_ctl returns true --- gfx/video_driver.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/gfx/video_driver.c b/gfx/video_driver.c index 42a94f3eb3..5936716ec3 100644 --- a/gfx/video_driver.c +++ b/gfx/video_driver.c @@ -2078,8 +2078,6 @@ void video_driver_frame(const void *data, unsigned width, const char *msg = NULL; settings_t *settings = config_get_ptr(); - runloop_ctl(RUNLOOP_CTL_MSG_QUEUE_PULL, &msg); - if (!video_driver_is_active()) return; @@ -2122,7 +2120,8 @@ void video_driver_frame(const void *data, unsigned width, } video_driver_msg[0] = '\0'; - if (msg) + + if (runloop_ctl(RUNLOOP_CTL_MSG_QUEUE_PULL, &msg)) strlcpy(video_driver_msg, msg, sizeof(video_driver_msg)); if (!current_video || !current_video->frame(