修复: main.c编译错误 - 未定义file_path, 错误的返回类型

This commit is contained in:
zzh 2026-02-12 13:25:25 +08:00
parent cc425d5bbe
commit 4e1ebc1153
2 changed files with 3 additions and 2 deletions

1
.gitignore vendored
View File

@ -1,3 +1,4 @@
*.DS_Store
build/
build-*/
*.o

View File

@ -124,11 +124,11 @@ int main(int argc, char **argv)
if (!media_path)
{
printf("[download_callback] 内存不足,添加播放列表失败");
return;
return -1;
}
memset(media_path, 0, sizeof(MediaPath));
safe_strcpy(media_path->path, file_path, MAX_URL_LEN);
safe_strcpy(media_path->path, "/usrdata/downloads/xxx.mp4", MAX_URL_LEN);
safe_strcpy(media_path->item_id, "", MAX_ID_LEN);
safe_strcpy(media_path->deviceId, "700000000010", MAX_DEVICE_ID);