[MPlayer-dev-eng] [PATCH] Add ability to have comments in plaintext playlist

adland adland123 at yahoo.com
Sun May 2 19:21:35 CEST 2004


Add ability to have comment lines in plaintext playlist

examples would be
#comment is here
or
//this is another comment

please consider.
thanks


--- main/playtreeparser.c       2004-04-26 16:13:04.000000000 -0400
+++ updated/playtreeparser.c    2004-05-02 13:15:46.000000000 -0400
@@ -555,7 +555,8 @@

   while((line = play_tree_parser_get_line(p)) != NULL) {
     strstrip(line);
-    if(line[0] == '\0')
+    //skip empty lines and comments starting # or //
+    if(line[0] == '\0' || line[0] == '#' || (line[0]=='/' && line[1]=='/'))
       continue;

     //Special check for smil reference in file





More information about the MPlayer-dev-eng mailing list