diff options
author | nicodvb <nicodvb@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2008-09-26 21:17:01 +0000 |
---|---|---|
committer | nicodvb <nicodvb@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2008-09-26 21:17:01 +0000 |
commit | 20e4a74eb52887f3a549e3642868d5973612c9d1 (patch) | |
tree | ef4e41b0afdd2335daa2c7f4e9b3692d2c55eb01 /mplayer.c | |
parent | e628297bbd96f82ea63d236ebb84fdf5429e6a42 (diff) | |
download | mpv-20e4a74eb52887f3a549e3642868d5973612c9d1.tar.bz2 mpv-20e4a74eb52887f3a549e3642868d5973612c9d1.tar.xz |
slave command to get the number of chapters; patch by Kevin DeKorte - kdekorte gmail com
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27667 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'mplayer.c')
-rw-r--r-- | mplayer.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -3531,6 +3531,11 @@ if (mpctx->global_sub_size) { } mp_msg(MSGT_IDENTIFY,MSGL_INFO,"ID_LENGTH=%.2lf\n", demuxer_get_time_length(mpctx->demuxer)); mp_msg(MSGT_IDENTIFY,MSGL_INFO,"ID_SEEKABLE=%d\n", mpctx->stream->seek ? 1 : 0); + if (mpctx->demuxer) { + if (mpctx->demuxer->num_chapters == 0) + stream_control(mpctx->demuxer->stream, STREAM_CTRL_GET_NUM_CHAPTERS, &mpctx->demuxer->num_chapters); + mp_msg(MSGT_IDENTIFY,MSGL_INFO,"ID_CHAPTERS=%d\n", mpctx->demuxer->num_chapters); + } if(!mpctx->sh_video) goto main; // audio-only |