comparison mplayer.c @ 33656:3c300c37766f

Remove guiGetEvent type guiSetFileFormat. Directly retrieve the information from the demuxer.
author ib
date Mon, 27 Jun 2011 18:55:18 +0000
parents 4af19d03b4e8
children c92f23eac7a4
comparison
equal deleted inserted replaced
33655:cbb7cfeb8c71 33656:3c300c37766f
3677 3677
3678 #ifdef CONFIG_GUI 3678 #ifdef CONFIG_GUI
3679 if (use_gui) { 3679 if (use_gui) {
3680 guiInfo.AudioChannels = mpctx->sh_audio ? mpctx->sh_audio->channels : 0; 3680 guiInfo.AudioChannels = mpctx->sh_audio ? mpctx->sh_audio->channels : 0;
3681 guiGetEvent(guiSetAudioOnly, (void *)(mpctx->sh_audio && !mpctx->sh_video)); 3681 guiGetEvent(guiSetAudioOnly, (void *)(mpctx->sh_audio && !mpctx->sh_video));
3682 guiGetEvent(guiSetFileFormat, (void *)mpctx->demuxer->file_format); 3682 guiGetEvent(guiSetDemuxer, mpctx->demuxer);
3683 if (guiGetEvent(guiSetValues, mpctx->sh_video)) 3683 if (guiGetEvent(guiSetValues, mpctx->sh_video))
3684 goto goto_next_file; 3684 goto goto_next_file;
3685 guiGetEvent(guiSetDemuxer, mpctx->demuxer);
3686 } 3685 }
3687 #endif 3686 #endif
3688 3687
3689 mp_input_set_section(NULL); 3688 mp_input_set_section(NULL);
3690 //TODO: add desired (stream-based) sections here 3689 //TODO: add desired (stream-based) sections here