mirror of
https://github.com/mpv-player/mpv
synced 2025-03-06 14:17:46 +00:00
Simplify another two ifs into one
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24523 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
7c8fcecc13
commit
6bfcbe1e81
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user