[MPlayer-dev-eng] [PATCH] x11_common: remove useless atom name retrieval

Julien Danjou julien at danjou.info
Fri Sep 19 13:53:42 CEST 2008


This avoid useless memory allocation/free.

Signed-off-by: Julien Danjou <julien at danjou.info>
---
 libvo/x11_common.c |   13 -------------
 1 files changed, 0 insertions(+), 13 deletions(-)

diff --git a/libvo/x11_common.c b/libvo/x11_common.c
index 287e0b3..9035260 100644
--- a/libvo/x11_common.c
+++ b/libvo/x11_common.c
@@ -1118,19 +1118,6 @@ int vo_x11_check_events(Display * mydisplay)
 #endif
                 mplayer_put_key(MOUSE_BTN0 + Event.xbutton.button - 1);
                 break;
-            case PropertyNotify:
-                {
-                    char *name =
-                        XGetAtomName(mydisplay, Event.xproperty.atom);
-
-                    if (!name)
-                        break;
-
-//          fprintf(stderr,"[ws] PropertyNotify ( 0x%x ) %s ( 0x%x )\n",vo_window,name,Event.xproperty.atom );
-
-                    XFree(name);
-                }
-                break;
             case MapNotify:
                 vo_hint.win_gravity = old_gravity;
                 XSetWMNormalHints(mDisplay, vo_window, &vo_hint);
-- 
1.6.0.1




More information about the MPlayer-dev-eng mailing list