From: Caisking Date: Tue, 8 Jul 2025 09:23:58 +0000 (+0800) Subject: 修改视频表盘文件的拼接问题 X-Git-Url: http://git.snicker.com.cn/css/static/gitweb.css?a=commitdiff_plain;h=62db46df039a3d039ced8f4cdc1094fea6b7333c;p=mirrors%2FFD230.git 修改视频表盘文件的拼接问题 --- diff --git a/code/sdk/application/wearable/service/ble_service/bleservice/bleEvent.c b/code/sdk/application/wearable/service/ble_service/bleservice/bleEvent.c index 775469b8b..0977143b8 100644 --- a/code/sdk/application/wearable/service/ble_service/bleservice/bleEvent.c +++ b/code/sdk/application/wearable/service/ble_service/bleservice/bleEvent.c @@ -210,14 +210,14 @@ static errcode_t get_file_recv_file_path(char* input_filename ,uint32_t input_si } static errcode_t get_custom_dial_file_path(uint16_t id,char *filename,uint32_t input_size, char* output_file_path , uint32_t max_output_size) { - if( id >=5 || output_file_path == NULL) + if( id >=5 || output_file_path == NULL || filename == NULL) { return ERRCODE_FAIL; } char name[64]={0}; ble_get_dial_path(name,id); int ret; - if(id == 1) //自定义视频表盘Id 1 + if(id == 1 && strcmp(filename, "main_bg") == 0) //自定义视频表盘Id 1 只有背景需要是mp4 main_bg { ret = sprintf_s(output_file_path,max_output_size,"%s/%s.mp4",name,filename); }