fix: fix pycparser in SDL and update rlottie, ffmpeg for cache API changes

This commit is contained in:
Gabor Kiss-Vamosi
2023-11-18 17:04:27 +01:00
parent 0471034a73
commit 873364f65f
4 changed files with 5 additions and 6 deletions
+1 -1
View File
@@ -159,7 +159,7 @@ void lv_sdl_window_set_title(lv_display_t * disp, const char * title)
SDL_SetWindowTitle(dsc->window, title); SDL_SetWindowTitle(dsc->window, title);
} }
SDL_Renderer * lv_sdl_window_get_renderer(lv_display_t * disp) void * lv_sdl_window_get_renderer(lv_display_t * disp)
{ {
lv_sdl_window_t * dsc = lv_display_get_driver_data(disp); lv_sdl_window_t * dsc = lv_display_get_driver_data(disp);
return dsc->renderer; return dsc->renderer;
+1 -2
View File
@@ -18,7 +18,6 @@ extern "C" {
#include "../../indev/lv_indev.h" #include "../../indev/lv_indev.h"
#if LV_USE_SDL #if LV_USE_SDL
#include LV_SDL_INCLUDE_PATH
/********************* /*********************
* DEFINES * DEFINES
@@ -42,7 +41,7 @@ lv_display_t * _lv_sdl_get_disp_from_win_id(uint32_t win_id);
void lv_sdl_window_set_title(lv_display_t * disp, const char * title); void lv_sdl_window_set_title(lv_display_t * disp, const char * title);
SDL_Renderer * lv_sdl_window_get_renderer(lv_display_t * disp); void * lv_sdl_window_get_renderer(lv_display_t * disp);
void lv_sdl_quit(); void lv_sdl_quit();
+2 -2
View File
@@ -798,7 +798,7 @@ static void lv_ffmpeg_player_frame_update_cb(lv_timer_t * timer)
} }
lv_cache_lock(); lv_cache_lock();
lv_cache_invalidate(lv_cache_find(lv_image_get_src(obj), LV_CACHE_SRC_TYPE_PTR, 0, 0)); lv_cache_invalidate_by_src(lv_image_get_src(obj), LV_CACHE_SRC_TYPE_POINTER);
lv_cache_unlock(); lv_cache_unlock();
lv_obj_invalidate(obj); lv_obj_invalidate(obj);
@@ -837,7 +837,7 @@ static void lv_ffmpeg_player_destructor(const lv_obj_class_t * class_p,
} }
lv_cache_lock(); lv_cache_lock();
lv_cache_invalidate(lv_cache_find(lv_image_get_src(obj), LV_CACHE_SRC_TYPE_PTR, 0, 0)); lv_cache_invalidate_by_src(lv_image_get_src(obj), LV_CACHE_SRC_TYPE_POINTER);
lv_cache_unlock(); lv_cache_unlock();
ffmpeg_close(player->ffmpeg_ctx); ffmpeg_close(player->ffmpeg_ctx);
+1 -1
View File
@@ -175,7 +175,7 @@ static void lv_rlottie_destructor(const lv_obj_class_t * class_p, lv_obj_t * obj
} }
lv_cache_lock(); lv_cache_lock();
lv_cache_invalidate(lv_cache_find(&rlottie->imgdsc, LV_CACHE_SRC_TYPE_PTR, 0, 0)); lv_cache_invalidate_by_src(&rlottie->imgdsc, LV_CACHE_SRC_TYPE_POINTER);
lv_cache_unlock(); lv_cache_unlock();
if(rlottie->allocated_buf) { if(rlottie->allocated_buf) {