Skip to content

Commit

Permalink
fix pi freeze
Browse files Browse the repository at this point in the history
  • Loading branch information
grant2258 committed Aug 14, 2018
1 parent f496b2b commit 55e8404
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
9 changes: 7 additions & 2 deletions daphne/libretro/libretro.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}


}


Expand Down

0 comments on commit 55e8404

Please sign in to comment.