]> git.sesse.net Git - vlc/commitdiff
* modules/demux/playlist/m3u.c: If name is empty, assume that the author
authorChristophe Massiot <massiot@videolan.org>
Fri, 19 Aug 2005 17:08:32 +0000 (17:08 +0000)
committerChristophe Massiot <massiot@videolan.org>
Fri, 19 Aug 2005 17:08:32 +0000 (17:08 +0000)
   is in reality the name of the file (compatibility with existing
   m3u files).

modules/demux/playlist/m3u.c

index 2b718dee9f056ae85a406ec3af8b834a81598a49..f00a965097a3cbaec8a084273e7c56d9291785ab 100644 (file)
@@ -316,6 +316,13 @@ static void parseEXTINF(char *psz_string, char **ppsz_author,
     /* the title doesn't need to be escaped */
     *ppsz_name = psz_string;
 
+    if( !**ppsz_name )
+    {
+        /* Assume a syntax without author name */
+        *ppsz_name = *ppsz_author;
+        *ppsz_author = NULL;
+    }
+
     return;
 }