[MPlayer-cvslog] r31179 - trunk/libvo/x11_common.c

reimar subversion at mplayerhq.hu
Fri May 14 20:00:04 CEST 2010


Author: reimar
Date: Fri May 14 20:00:04 2010
New Revision: 31179

Log:
Quit MPlayer if we receive a DestroyNotify event.
This in particular avoids MPlayer continuing to play when
a frontend using -wid crashed.

Modified:
   trunk/libvo/x11_common.c

Modified: trunk/libvo/x11_common.c
==============================================================================
--- trunk/libvo/x11_common.c	Fri May 14 18:56:43 2010	(r31178)
+++ trunk/libvo/x11_common.c	Fri May 14 20:00:04 2010	(r31179)
@@ -931,6 +931,10 @@ int vo_x11_check_events(Display * mydisp
                 XSetWMNormalHints(mDisplay, vo_window, &vo_hint);
                 vo_fs_flip = 0;
                 break;
+            case DestroyNotify:
+                mp_msg(MSGT_VO, MSGL_WARN, "Our window was destroyed, exiting\n");
+                mplayer_put_key(KEY_CLOSE_WIN);
+                break;
 	    case ClientMessage:
                 if (Event.xclient.message_type == XAWM_PROTOCOLS &&
                     Event.xclient.data.l[0] == XAWM_DELETE_WINDOW)


More information about the MPlayer-cvslog mailing list