1
mirror of https://github.com/mpv-player/mpv synced 2024-12-24 07:33:46 +01:00

Handle winamp playlist as sublist.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@5867 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
albeu 2002-04-27 18:46:38 +00:00
parent e8793e8c86
commit 3d152232ab

View File

@ -294,6 +294,7 @@ parse_pls(play_tree_parser_t* p) {
if(entries[num].file == NULL)
mp_msg(MSGT_PLAYTREE,MSGL_ERR,"Entry %d don't have a file !!!!\n",num+1);
else {
mp_msg(MSGT_PLAYTREE,MSGL_DBG2,"Adding entry %s\n",entries[num].file);
entry = play_tree_new();
play_tree_add_file(entry,entries[num].file);
free(entries[num].file);
@ -313,8 +314,10 @@ parse_pls(play_tree_parser_t* p) {
}
free(entries);
return list;
entry = play_tree_new();
play_tree_set_child(entry,list);
return entry;
}
play_tree_t*