Mercurial > mplayer.hg
changeset 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 | cbb7cfeb8c71 |
children | c92f23eac7a4 |
files | gui/interface.c gui/interface.h gui/win32/interface.c mplayer.c |
diffstat | 4 files changed, 2 insertions(+), 12 deletions(-) [+] |
line wrap: on
line diff
--- a/gui/interface.c Mon Jun 27 14:27:33 2011 +0000 +++ b/gui/interface.c Mon Jun 27 18:55:18 2011 +0000 @@ -708,10 +708,6 @@ } break; - case guiSetFileFormat: - guiInfo.FileFormat = (int)arg; - break; - case guiSetValues: // video @@ -765,7 +761,7 @@ // subtitle #ifdef CONFIG_DXR3 - if (video_driver_list && !gstrcmp(video_driver_list[0], "dxr3") && (guiInfo.FileFormat != DEMUXER_TYPE_MPEG_PS) && !gtkVfLAVC) { + if (video_driver_list && !gstrcmp(video_driver_list[0], "dxr3") && (((demuxer_t *)mpctx_get_demuxer(guiInfo.mpcontext))->file_format != DEMUXER_TYPE_MPEG_PS) && !gtkVfLAVC) { gtkMessageBox(GTK_MB_FATAL, MSGTR_NEEDLAVC); guiInfo.Playing = 0; return True;
--- a/gui/interface.h Mon Jun 27 14:27:33 2011 +0000 +++ b/gui/interface.h Mon Jun 27 18:55:18 2011 +0000 @@ -49,7 +49,6 @@ #define guiSetVolume 11 #define guiSetDefaults 12 #define guiSetValues 13 -#define guiSetFileFormat 14 #define guiSetDemuxer 15 #define guiSetParameters 16 #define guiSetAfilter 17 @@ -184,7 +183,6 @@ int TimeSec; int LengthInSec; int FrameDrop; - int FileFormat; float FPS; char *Filename;
--- a/gui/win32/interface.c Mon Jun 27 14:27:33 2011 +0000 +++ b/gui/win32/interface.c Mon Jun 27 18:55:18 2011 +0000 @@ -551,9 +551,6 @@ switch (type) { - case guiSetFileFormat: - guiInfo.FileFormat = (int) arg; - break; case guiSetParameters: { guiGetEvent(guiSetDefaults, NULL);
--- a/mplayer.c Mon Jun 27 14:27:33 2011 +0000 +++ b/mplayer.c Mon Jun 27 18:55:18 2011 +0000 @@ -3679,10 +3679,9 @@ if (use_gui) { guiInfo.AudioChannels = mpctx->sh_audio ? mpctx->sh_audio->channels : 0; guiGetEvent(guiSetAudioOnly, (void *)(mpctx->sh_audio && !mpctx->sh_video)); - guiGetEvent(guiSetFileFormat, (void *)mpctx->demuxer->file_format); + guiGetEvent(guiSetDemuxer, mpctx->demuxer); if (guiGetEvent(guiSetValues, mpctx->sh_video)) goto goto_next_file; - guiGetEvent(guiSetDemuxer, mpctx->demuxer); } #endif