chore: fix warning and build error

This commit is contained in:
Gabor Kiss-Vamosi 2023-09-15 00:25:26 +02:00
parent 757877b1fc
commit 10414b2f96
2 changed files with 8 additions and 3 deletions

View File

@ -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;

View File

@ -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;
}
}