Mercurial > mplayer.hg
comparison mplayer.c @ 26081:2cb4aabb7dd8
Attempt to fix -chapter broken for mkv in r25987
author | reimar |
---|---|
date | Thu, 28 Feb 2008 19:41:40 +0000 |
parents | 21ffd4958ab5 |
children | 2a112aed0dda |
comparison
equal
deleted
inserted
replaced
26080:90e9ac3ee4c0 | 26081:2cb4aabb7dd8 |
---|---|
3272 | 3272 |
3273 if(!mpctx->demuxer) | 3273 if(!mpctx->demuxer) |
3274 goto goto_next_file; | 3274 goto goto_next_file; |
3275 if(dvd_chapter>1) { | 3275 if(dvd_chapter>1) { |
3276 float pts; | 3276 float pts; |
3277 demuxer_seek_chapter(mpctx->demuxer, dvd_chapter-1, 1, &pts, NULL, NULL); | 3277 if (demuxer_seek_chapter(mpctx->demuxer, dvd_chapter-1, 1, &pts, NULL, NULL) >= 0 && pts > -1.0) |
3278 seek(mpctx, pts, SEEK_ABSOLUTE); | |
3278 } | 3279 } |
3279 | 3280 |
3280 initialized_flags|=INITIALIZED_DEMUXER; | 3281 initialized_flags|=INITIALIZED_DEMUXER; |
3281 | 3282 |
3282 if (mpctx->stream->type != STREAMTYPE_DVD && mpctx->stream->type != STREAMTYPE_DVDNAV) { | 3283 if (mpctx->stream->type != STREAMTYPE_DVD && mpctx->stream->type != STREAMTYPE_DVDNAV) { |