From 6bfcbe1e8130791705d8dfd3abe7779843ad98d6 Mon Sep 17 00:00:00 2001 From: reimar Date: Sat, 15 Sep 2007 11:41:47 +0000 Subject: Simplify another two ifs into one git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24523 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libmpdemux/demux_ty.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/libmpdemux/demux_ty.c b/libmpdemux/demux_ty.c index 9692a27a2d..f4d75b3e24 100644 --- a/libmpdemux/demux_ty.c +++ b/libmpdemux/demux_ty.c @@ -197,13 +197,7 @@ static int tmf_load_chunk( demuxer_t *demux, TiVoInfo *tivo, fileoffset = tmf_filetooffset(tivo, readChunk); - if (fileoffset == -1) { - mp_msg(MSGT_DEMUX, MSGL_ERR, "Read past EOF()\n"); - return 0; - } - - if ( stream_seek( demux->stream, fileoffset ) != 1 ) - { + if (fileoffset == -1 || !stream_seek(demux->stream, fileoffset)) { mp_msg( MSGT_DEMUX, MSGL_ERR, "Read past EOF()\n" ); return 0; } -- cgit v1.2.3