[xiph-commits] r16497 - in trunk/ezstream: . src

moritz at svn.xiph.org moritz at svn.xiph.org
Sat Aug 22 03:03:45 PDT 2009


Author: moritz
Date: 2009-08-22 03:03:45 -0700 (Sat, 22 Aug 2009)
New Revision: 16497

Modified:
   trunk/ezstream/NEWS
   trunk/ezstream/src/ezstream.c
Log:
#1585: Continue when openResource() fails.


Modified: trunk/ezstream/NEWS
===================================================================
--- trunk/ezstream/NEWS	2009-08-21 23:41:15 UTC (rev 16496)
+++ trunk/ezstream/NEWS	2009-08-22 10:03:45 UTC (rev 16497)
@@ -1,3 +1,12 @@
+Changes in 0.5.6, released on XXXX-XX-XX:
+
+ * src/ezstream.c:
+   - [MISC]  Be more tolerant towards faulty playlists and similar issues.
+             Failure to open a resource (e.g. a media file) is no longer fatal
+             and operation will continue as far as possible. Idea from dhorton.
+             (Ticket #1585)
+
+
 Changes in 0.5.5, released on 2009-08-01:
 
  * win32/config.h:

Modified: trunk/ezstream/src/ezstream.c
===================================================================
--- trunk/ezstream/src/ezstream.c	2009-08-21 23:41:15 UTC (rev 16496)
+++ trunk/ezstream/src/ezstream.c	2009-08-22 10:03:45 UTC (rev 16497)
@@ -874,9 +874,9 @@
 
 	if ((filepstream = openResource(shout, fileName, &popenFlag,
 					&mdata, &isStdin, &songLen))
-	    == NULL) {
-		return (retval);
-	}
+	    == NULL)
+		/* Continue with next resource on failure: */
+		return (1);
 
 	if (mdata != NULL) {
 		char	*tmp, *metaData;



More information about the commits mailing list