[NUT-devel] [nut]: r218 - trunk/libnut/demuxer.c

ods15 subversion at mplayerhq.hu
Thu Nov 16 08:36:48 CET 2006


Author: ods15
Date: Thu Nov 16 08:36:46 2006
New Revision: 218

Modified:
   trunk/libnut/demuxer.c

Log:
update libnut to itself :) non-negative errors


Modified: trunk/libnut/demuxer.c
==============================================================================
--- trunk/libnut/demuxer.c	(original)
+++ trunk/libnut/demuxer.c	Thu Nov 16 08:36:46 2006
@@ -859,8 +859,8 @@
 	}
 
 	while ((err = get_packet(nut, pd, NULL)) == -1);
-	if (err < 0) { // some error occured!
-		fprintf(stderr, "NUT: %s\n", nut_error(-err));
+	if (err > NUT_ERR_EAGAIN) { // some error occured!
+		fprintf(stderr, "NUT: %s\n", nut_error(err));
 		// rewind as much as possible
 		if (nut->i->isc.seek) seek_buf(nut->i, nut->last_syncpoint + 8, SEEK_SET);
 		else nut->i->buf_ptr = nut->i->buf;



More information about the NUT-devel mailing list