aboutsummaryrefslogtreecommitdiffhomepage
path: root/libmpdemux/demux_nut.c
diff options
context:
space:
mode:
Diffstat (limited to 'libmpdemux/demux_nut.c')
-rw-r--r--libmpdemux/demux_nut.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/libmpdemux/demux_nut.c b/libmpdemux/demux_nut.c
index 87a969579e..9f4a788484 100644
--- a/libmpdemux/demux_nut.c
+++ b/libmpdemux/demux_nut.c
@@ -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);
}