mirror of
https://github.com/mpv-player/mpv
synced 2024-12-15 19:35:49 +00:00
removed duplicated check in demuxer_seek_chapter
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20857 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
61f29af978
commit
c42fa438f4
@ -1096,7 +1096,7 @@ int demuxer_seek_chapter(demuxer_t *demuxer, int chapter, int mode, float *seek_
|
||||
if (!demuxer->num_chapters || !demuxer->chapters) {
|
||||
if(!mode) {
|
||||
ris = stream_control(demuxer->stream, STREAM_CTRL_GET_CURRENT_CHAPTER, ¤t);
|
||||
if(ris == STREAM_UNSUPORTED && !mode) return -1;
|
||||
if(ris == STREAM_UNSUPORTED) return -1;
|
||||
chapter += current;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user