修改视频表盘文件的拼接问题
authorCaisking <Casiking@zhihuishixun.com>
Tue, 8 Jul 2025 09:23:58 +0000 (17:23 +0800)
committerCaisking <Casiking@zhihuishixun.com>
Tue, 8 Jul 2025 09:23:58 +0000 (17:23 +0800)
code/sdk/application/wearable/service/ble_service/bleservice/bleEvent.c

index 775469b..0977143 100644 (file)
@@ -210,14 +210,14 @@ static errcode_t get_file_recv_file_path(char* input_filename ,uint32_t input_si
 } \r
 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)\r
 {\r
-    if( id >=5  || output_file_path == NULL)\r
+    if( id >=5  || output_file_path == NULL || filename == NULL)\r
     {\r
         return ERRCODE_FAIL;\r
     }\r
     char name[64]={0};\r
     ble_get_dial_path(name,id);\r
     int ret;\r
-    if(id == 1) //自定义视频表盘Id 1\r
+   if(id == 1 && strcmp(filename, "main_bg") == 0) //自定义视频表盘Id 1 只有背景需要是mp4 main_bg\r
     {\r
         ret = sprintf_s(output_file_path,max_output_size,"%s/%s.mp4",name,filename);  \r
     }\r