mirror of
https://github.com/mpv-player/mpv
synced 2024-09-09 01:16:56 +02: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:
parent
e8793e8c86
commit
3d152232ab
@ -294,6 +294,7 @@ parse_pls(play_tree_parser_t* p) {
|
|||||||
if(entries[num].file == NULL)
|
if(entries[num].file == NULL)
|
||||||
mp_msg(MSGT_PLAYTREE,MSGL_ERR,"Entry %d don't have a file !!!!\n",num+1);
|
mp_msg(MSGT_PLAYTREE,MSGL_ERR,"Entry %d don't have a file !!!!\n",num+1);
|
||||||
else {
|
else {
|
||||||
|
mp_msg(MSGT_PLAYTREE,MSGL_DBG2,"Adding entry %s\n",entries[num].file);
|
||||||
entry = play_tree_new();
|
entry = play_tree_new();
|
||||||
play_tree_add_file(entry,entries[num].file);
|
play_tree_add_file(entry,entries[num].file);
|
||||||
free(entries[num].file);
|
free(entries[num].file);
|
||||||
@ -313,8 +314,10 @@ parse_pls(play_tree_parser_t* p) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
free(entries);
|
free(entries);
|
||||||
|
|
||||||
return list;
|
entry = play_tree_new();
|
||||||
|
play_tree_set_child(entry,list);
|
||||||
|
return entry;
|
||||||
}
|
}
|
||||||
|
|
||||||
play_tree_t*
|
play_tree_t*
|
||||||
|
Loading…
Reference in New Issue
Block a user