mirror of
https://github.com/lvgl/lvgl.git
synced 2024-11-30 13:14:37 +08:00
chore: fix warning and build error
This commit is contained in:
parent
757877b1fc
commit
10414b2f96
@ -798,7 +798,10 @@ static void lv_ffmpeg_player_frame_update_cb(lv_timer_t * timer)
|
||||
return;
|
||||
}
|
||||
|
||||
lv_image_cache_invalidate_src(lv_image_get_src(obj));
|
||||
lv_cache_lock();
|
||||
lv_cache_invalidate(lv_image_get_src(obj));
|
||||
lv_cache_unlock();
|
||||
|
||||
lv_obj_invalidate(obj);
|
||||
}
|
||||
|
||||
@ -834,7 +837,9 @@ static void lv_ffmpeg_player_destructor(const lv_obj_class_t * class_p,
|
||||
player->timer = NULL;
|
||||
}
|
||||
|
||||
lv_image_cache_invalidate_src(lv_image_get_src(obj));
|
||||
lv_cache_lock();
|
||||
lv_cache_invalidate(lv_image_get_src(obj));
|
||||
lv_cache_unlock();
|
||||
|
||||
ffmpeg_close(player->ffmpeg_ctx);
|
||||
player->ffmpeg_ctx = NULL;
|
||||
|
@ -159,7 +159,7 @@ static lv_res_t decoder_open(lv_image_decoder_t * decoder, lv_image_decoder_dsc_
|
||||
if(png_data != NULL) {
|
||||
lv_free((void *)png_data);
|
||||
}
|
||||
LV_LOG_WARN("error %" LV_PRIu32 ": %s\n", error, lodepng_error_text(error));
|
||||
LV_LOG_WARN("error %u: %s\n", error, lodepng_error_text(error));
|
||||
return LV_RES_INV;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user