From 55e84040178b83f27c9056433d45380f68b6c502 Mon Sep 17 00:00:00 2001 From: grant2258 Date: Tue, 14 Aug 2018 11:17:49 +0100 Subject: [PATCH] fix pi freeze --- Makefile | 6 +++--- daphne/libretro/libretro.cpp | 9 +++++++-- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index 78d4afe..34d65c5 100644 --- a/Makefile +++ b/Makefile @@ -57,9 +57,9 @@ else ifeq ($(platform), pi) TARGET := $(TARGET_NAME)_libretro.so fpic := -fPIC SHARED := -shared -Wl,--version-script=link.T -Wl,--no-undefined - CXXFLAGS += -I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/vmcs_host/linux - CFLAGS += -I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/vmcs_host/linux - LIBS += -L/opt/vc/lib -lpthread -ldl + CXXFLAGS += -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/vmcs_host/linux + CFLAGS += -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/vmcs_host/linux + LIBS += -L/opt/vc/lib -lpthread -ldl -lbcm_host -lvchostif else ifneq (,$(findstring ios,$(platform))) TARGET := $(TARGET_NAME)_libretro_ios.dylib fpic := -fPIC diff --git a/daphne/libretro/libretro.cpp b/daphne/libretro/libretro.cpp index f72cca3..7d672c5 100644 --- a/daphne/libretro/libretro.cpp +++ b/daphne/libretro/libretro.cpp @@ -448,9 +448,14 @@ void retro_run(void) SDL_SW_YUVTexture * sw_overlay = NULL; sw_overlay = get_vb_waiting(&vb_ndx); - if (sw_overlay && video_cb) - video_cb(sw_overlay->pixels, sw_overlay->w, sw_overlay->h, sw_overlay->w * DAPHNE_VIDEO_ByPP); + if (sw_overlay && video_cb) + { + + video_cb(sw_overlay->pixels, sw_overlay->w, sw_overlay->h, sw_overlay->w * DAPHNE_VIDEO_ByPP); set_vb_rendering_done(vb_ndx); + } + + }