changeset 20971:e243a3de18c2

missed piece in update to libnut API - non negative errors
author ods15
date Fri, 17 Nov 2006 17:43:40 +0000
parents 5e7183c4d01c
children ef8ac967b43f
files libmpdemux/demux_nut.c
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/demux_nut.c	Fri Nov 17 14:57:12 2006 +0000
+++ b/libmpdemux/demux_nut.c	Fri Nov 17 17:43:40 2006 +0000
@@ -251,8 +251,7 @@
 		                       priv->s[0].time_base.den;
 
 	ret = nut_seek(nut, time_pos, nutflags, tmp);
-	if (ret < 0)
-		mp_msg(MSGT_HEADER, MSGL_ERR, "NUT error: %s\n", nut_error(-ret));
+	if (ret) mp_msg(MSGT_HEADER, MSGL_ERR, "NUT error: %s\n", nut_error(ret));
 	if (sh_audio) resync_audio_stream(sh_audio);
 }