[Mplayer-cvslog] CVS: main playtreeparser.c,1.9,1.10

Alban Bedel CVS albeu at mplayerhq.hu
Sat Apr 27 20:46:41 CEST 2002


Update of /cvsroot/mplayer/main
In directory mail:/var/tmp.root/cvs-serv19657

Modified Files:
	playtreeparser.c 
Log Message:
Handle winamp playlist as sublist.


Index: playtreeparser.c
===================================================================
RCS file: /cvsroot/mplayer/main/playtreeparser.c,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- playtreeparser.c	23 Apr 2002 20:06:00 -0000	1.9
+++ playtreeparser.c	27 Apr 2002 18:46:38 -0000	1.10
@@ -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*




More information about the MPlayer-cvslog mailing list