From a90a79fa95ad68aa396b96c9996e596833b4e75a Mon Sep 17 00:00:00 2001 From: hunterk Date: Wed, 19 Oct 2022 22:07:20 -0500 Subject: [PATCH] revert offending function fixes https://github.com/libretro/RetroArch/issues/14528 --- gfx/video_thread_wrapper.c | 19 +++---------------- 1 file changed, 3 insertions(+), 16 deletions(-) diff --git a/gfx/video_thread_wrapper.c b/gfx/video_thread_wrapper.c index 917c9b138e..4358e87eb3 100644 --- a/gfx/video_thread_wrapper.c +++ b/gfx/video_thread_wrapper.c @@ -1384,28 +1384,15 @@ bool video_init_thread(const video_driver_t **out_driver, void **out_data, const video_driver_t *drv, const video_info_t info) { thread_video_t *thr = (thread_video_t*)calloc(1, sizeof(*thr)); - if (!thr) - goto error; + return false; video_thread_set_callbacks(thr, drv); - if (!video_thread_init(thr, info, input, input_data)) - { - thr->video_thread.free(thr); - goto error; - } - + thr->driver = drv; *out_driver = &thr->video_thread; *out_data = thr; - - return true; - -error: - *out_driver = NULL; - *out_data = NULL; - - return false; + return video_thread_init(thr, info, input, input_data); } bool video_thread_font_init(const void **font_driver, void **font_handle,