Mercurial > mplayer.hg
comparison mplayer.c @ 27635:22bdd7ba8892
slave command to get the number of chapters; patch by Kevin DeKorte - kdekorte gmail com
author | nicodvb |
---|---|
date | Fri, 26 Sep 2008 21:17:01 +0000 |
parents | 9d0094f6cdf6 |
children | 48c1ae64255b |
comparison
equal
deleted
inserted
replaced
27634:9d0094f6cdf6 | 27635:22bdd7ba8892 |
---|---|
3529 mp_msg(MSGT_IDENTIFY,MSGL_INFO,"ID_AUDIO_RATE=%d\n", mpctx->sh_audio->samplerate); | 3529 mp_msg(MSGT_IDENTIFY,MSGL_INFO,"ID_AUDIO_RATE=%d\n", mpctx->sh_audio->samplerate); |
3530 mp_msg(MSGT_IDENTIFY,MSGL_INFO,"ID_AUDIO_NCH=%d\n", mpctx->sh_audio->channels); | 3530 mp_msg(MSGT_IDENTIFY,MSGL_INFO,"ID_AUDIO_NCH=%d\n", mpctx->sh_audio->channels); |
3531 } | 3531 } |
3532 mp_msg(MSGT_IDENTIFY,MSGL_INFO,"ID_LENGTH=%.2lf\n", demuxer_get_time_length(mpctx->demuxer)); | 3532 mp_msg(MSGT_IDENTIFY,MSGL_INFO,"ID_LENGTH=%.2lf\n", demuxer_get_time_length(mpctx->demuxer)); |
3533 mp_msg(MSGT_IDENTIFY,MSGL_INFO,"ID_SEEKABLE=%d\n", mpctx->stream->seek ? 1 : 0); | 3533 mp_msg(MSGT_IDENTIFY,MSGL_INFO,"ID_SEEKABLE=%d\n", mpctx->stream->seek ? 1 : 0); |
3534 if (mpctx->demuxer) { | |
3535 if (mpctx->demuxer->num_chapters == 0) | |
3536 stream_control(mpctx->demuxer->stream, STREAM_CTRL_GET_NUM_CHAPTERS, &mpctx->demuxer->num_chapters); | |
3537 mp_msg(MSGT_IDENTIFY,MSGL_INFO,"ID_CHAPTERS=%d\n", mpctx->demuxer->num_chapters); | |
3538 } | |
3534 | 3539 |
3535 if(!mpctx->sh_video) goto main; // audio-only | 3540 if(!mpctx->sh_video) goto main; // audio-only |
3536 | 3541 |
3537 if(!reinit_video_chain()) { | 3542 if(!reinit_video_chain()) { |
3538 if(!mpctx->sh_video){ | 3543 if(!mpctx->sh_video){ |