[xiph-commits] r13802 - trunk/ezstream/src
moritz at svn.xiph.org
moritz at svn.xiph.org
Fri Sep 14 00:01:19 PDT 2007
Author: moritz
Date: 2007-09-14 00:01:18 -0700 (Fri, 14 Sep 2007)
New Revision: 13802
Modified:
trunk/ezstream/src/ezstream.c
Log:
Warn, in verbose mode, when dealing with empty playlists.
Modified: trunk/ezstream/src/ezstream.c
===================================================================
--- trunk/ezstream/src/ezstream.c 2007-09-14 07:00:41 UTC (rev 13801)
+++ trunk/ezstream/src/ezstream.c 2007-09-14 07:01:18 UTC (rev 13802)
@@ -980,14 +980,21 @@
} else {
if ((playlist = playlist_read(fileName)) == NULL)
return (0);
+ if (vFlag && playlist_get_num_items(playlist) == 0)
+ printf("%s: Warning: Playlist '%s' is empty\n",
+ __progname, fileName);
}
- } else
+ } else {
/*
* XXX: This preserves traditional behavior, however,
* rereading the playlist after each walkthrough seems a
* bit more logical.
*/
playlist_rewind(playlist);
+ if (vFlag && playlist_get_num_items(playlist) == 0)
+ printf("%s: Warning: Playlist '%s' is empty\n",
+ __progname, fileName);
+ }
if (!pezConfig->fileNameIsProgram && pezConfig->shuffle)
playlist_shuffle(playlist);
More information about the commits
mailing list