[MPlayer-cvslog] r31961 - trunk/playtreeparser.c

siretart subversion at mplayerhq.hu
Fri Aug 13 18:00:18 CEST 2010


Author: siretart
Date: Fri Aug 13 18:00:18 2010
New Revision: 31961

Log:
Avoid trying to parse playlists without any recognized entries.

Modified:
   trunk/playtreeparser.c

Modified: trunk/playtreeparser.c
==============================================================================
--- trunk/playtreeparser.c	Fri Aug 13 17:58:11 2010	(r31960)
+++ trunk/playtreeparser.c	Fri Aug 13 18:00:18 2010	(r31961)
@@ -367,6 +367,9 @@ parse_pls(play_tree_parser_t* p) {
 
   free(entries);
 
+  if (!list)
+    return NULL;
+
   entry = play_tree_new();
   play_tree_set_child(entry,list);
   return entry;


More information about the MPlayer-cvslog mailing list