# HG changeset patch # User ib # Date 1310296900 0 # Node ID a3983d2c9106159b76e1e8cdfd4c0280afdeab0e # Parent 6673b85049faef33a9f95ff455988f1062300d21 Remove unused members from struct guiInterface_t. Dynamic label variable $d isn't documented and would not return anything of value. Setting XEvent type KeyPress to None in gui/ui/main.c isn't necessary, because for this event there is a 'break' in libvo/x11_common.c in case CONFIG_GUI is defined. diff -r 6673b85049fa -r a3983d2c9106 gui/interface.c --- a/gui/interface.c Sat Jul 09 18:11:42 2011 +0000 +++ b/gui/interface.c Sun Jul 10 11:21:40 2011 +0000 @@ -781,7 +781,6 @@ break; case GUI_HANDLE_X_EVENT: - guiInfo.event_struct = arg; wsEvents(wsDisplay, arg); gtkEventHandling(); break; @@ -1114,10 +1113,8 @@ void mplayerLoadSubtitle(char *name) { - if (guiInfo.Playing == 0) { - guiInfo.SubtitleChanged = 1; // what is this for? (mw) + if (guiInfo.Playing == 0) return; - } if (subdata) { mp_msg(MSGT_GPLAYER, MSGL_INFO, MSGTR_DeletingSubtitles); diff -r 6673b85049fa -r a3983d2c9106 gui/interface.h --- a/gui/interface.h Sat Jul 09 18:11:42 2011 +0000 +++ b/gui/interface.h Sun Jul 10 11:21:40 2011 +0000 @@ -76,26 +76,6 @@ MPLAYER_SET_SUB_ENCODING }; -typedef struct { - int x; - int y; - int width; - int height; -} guiResizeStruct; - -typedef struct { - int signal; - char module[512]; -} guiUnknownErrorStruct; - -typedef struct { - int seek; - int format; - int width; - int height; - char codecdll[128]; -} guiVideoStruct; - #ifdef CONFIG_DVDREAD typedef struct { int titles; @@ -112,15 +92,9 @@ #endif typedef struct { - int message; - guiResizeStruct resize; - guiVideoStruct videodata; - guiUnknownErrorStruct error; - struct MPContext *mpcontext; void *sh_video; void *afilter; - void *event_struct; int DiskChanged; int NewPlay; @@ -151,22 +125,16 @@ int StreamType; int TimeSec; int LengthInSec; - int FrameDrop; float FPS; char *Filename; int FilenameChanged; char *Subtitlename; - int SubtitleChanged; char *Othername; - int OtherChanged; char *AudioFile; - int AudioFileChanged; - - int SkinChange; } guiInterface_t; extern guiInterface_t guiInfo; diff -r 6673b85049fa -r a3983d2c9106 gui/ui/main.c --- a/gui/ui/main.c Sat Jul 09 18:11:42 2011 +0000 +++ b/gui/ui/main.c Sun Jul 10 11:21:40 2011 +0000 @@ -576,7 +576,6 @@ case wsEscape: if ( guiApp.subWindow.isFullScreen ) { - if ( guiInfo.event_struct ) ((XEvent *)guiInfo.event_struct)->type=None; uiEventHandling( evNormalSize,0 ); return; } diff -r 6673b85049fa -r a3983d2c9106 gui/ui/render.c --- a/gui/ui/render.c Sat Jul 09 18:11:42 2011 +0000 +++ b/gui/ui/render.c Sun Jul 10 11:21:40 2011 +0000 @@ -209,11 +209,6 @@ av_strlcat(trbuf, tmp, sizeof(trbuf)); break; - case 'd': - snprintf(tmp, sizeof(tmp), "%d", guiInfo.FrameDrop); - av_strlcat(trbuf, tmp, sizeof(trbuf)); - break; - case 'x': snprintf(tmp, sizeof(tmp), "%d", guiInfo.MovieWidth); av_strlcat(trbuf, tmp, sizeof(trbuf)); diff -r 6673b85049fa -r a3983d2c9106 gui/win32/dialogs.c --- a/gui/win32/dialogs.c Sat Jul 09 18:11:42 2011 +0000 +++ b/gui/win32/dialogs.c Sun Jul 10 11:21:40 2011 +0000 @@ -47,11 +47,8 @@ void mplayerLoadSubtitle(char *name) { - if (!guiInfo.Playing) - { - guiInfo.SubtitleChanged = 1; - return; - } + if (!guiInfo.Playing) return; + if (subdata) { mp_msg(MSGT_GPLAYER, MSGL_INFO, MSGTR_DeletingSubtitles);