changeset 33773:a3983d2c9106

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.
author ib
date Sun, 10 Jul 2011 11:21:40 +0000
parents 6673b85049fa
children 474ffcdcc6e7
files gui/interface.c gui/interface.h gui/ui/main.c gui/ui/render.c gui/win32/dialogs.c
diffstat 5 files changed, 3 insertions(+), 47 deletions(-) [+]
line wrap: on
line diff
--- 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);
--- 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;
--- 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;
 	     }
--- 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));
--- 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);