changeset 5866:0f5f626e5151

Handle winamp playlist as sublist.
author albeu
date Sat, 27 Apr 2002 18:46:38 +0000
parents f4b470b66a99
children bcaf7af53056
files playtreeparser.c
diffstat 1 files changed, 5 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/playtreeparser.c	Sat Apr 27 18:24:12 2002 +0000
+++ b/playtreeparser.c	Sat Apr 27 18:46:38 2002 +0000
@@ -294,6 +294,7 @@
     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 @@
   }
 
   free(entries);
-	
-  return list;
+
+  entry = play_tree_new();
+  play_tree_set_child(entry,list);	
+  return entry;
 }
 
 play_tree_t*