[xiph-cvs] cvs commit: ices/src im_playlist.c

Karl Heyes karl at xiph.org
Mon Aug 25 12:56:56 PDT 2003



karl        03/08/25 15:56:55

  Modified:    src      im_playlist.c
  Log:
  surround filenames with quotes, so that it's clearer in the log about the
  playlist file being referenced.

Revision  Changes    Path
1.14      +4 -5      ices/src/im_playlist.c

Index: im_playlist.c
===================================================================
RCS file: /usr/local/cvsroot/ices/src/im_playlist.c,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -r1.13 -r1.14
--- im_playlist.c	13 Aug 2003 00:58:01 -0000	1.13
+++ im_playlist.c	25 Aug 2003 19:56:55 -0000	1.14
@@ -1,7 +1,7 @@
 /* playlist.c
  * - Basic playlist functionality
  *
- * $Id: im_playlist.c,v 1.13 2003/08/13 00:58:01 karl Exp $
+ * $Id: im_playlist.c,v 1.14 2003/08/25 19:56:55 karl Exp $
  *
  * Copyright (c) 2001 Michael Smith <msmith at labyrinth.net.au>
  *
@@ -137,11 +137,11 @@
             pl->current_file = fopen(pl->filename, "rb");
             if (!pl->current_file) 
             {
-                LOG_WARN2("Error opening file %s: %s",pl->filename, strerror(errno));
+                LOG_WARN2("Error opening file \"%s\": %s",pl->filename, strerror(errno));
                 pl->errors++;
                 return 0;
             }
-            LOG_INFO1("Currently playing %s", pl->filename);
+            LOG_INFO1("Currently playing \"%s\"", pl->filename);
         }
         else
         {
@@ -192,8 +192,7 @@
             } 
             else 
             {
-                LOG_ERROR2("Read error from %s: %s", 
-                        pl->filename, strerror(errno));
+                LOG_ERROR2("Read error from \"%s\": %s", pl->filename, strerror(errno));
                 fclose(pl->current_file);
                 pl->current_file=NULL;
                 pl->errors++;

<p><p>--- >8 ----
List archives:  http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to 'cvs-request at xiph.org'
containing only the word 'unsubscribe' in the body.  No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.



More information about the commits mailing list