missed piece in update to libnut API - non negative errors
authorods15 <ods15@b3059339-0415-0410-9bf9-f77b7e298cf2>
Fri, 17 Nov 2006 17:43:40 +0000 (17:43 +0000)
committerods15 <ods15@b3059339-0415-0410-9bf9-f77b7e298cf2>
Fri, 17 Nov 2006 17:43:40 +0000 (17:43 +0000)
git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@20987 b3059339-0415-0410-9bf9-f77b7e298cf2

libmpdemux/demux_nut.c

index 87a9695..9f4a788 100644 (file)
@@ -251,8 +251,7 @@ static void demux_seek_nut(demuxer_t * demuxer, float time_pos, float audio_dela
                                       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);
 }