[vlc-commits] macosx: fix crash when closing video window without decorations

David Fuhrmann git at videolan.org
Mon Nov 25 17:47:03 CET 2013


vlc/vlc-2.1 | branch: master | David Fuhrmann <david.fuhrmann at googlemail.com> | Mon Nov 25 17:36:27 2013 +0100| [7c87233f87d06ac329e55a3800ff5e07056a8ce4] | committer: David Fuhrmann

macosx: fix crash when closing video window without decorations

(cherry picked from commit ee3e5d56ec9816c3728706b3618686790fb0892d)
Signed-off-by: David Fuhrmann <david.fuhrmann at googlemail.com>

> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.1.git/?a=commit;h=7c87233f87d06ac329e55a3800ff5e07056a8ce4
---

 NEWS                                         |    1 +
 modules/gui/macosx/VLCVoutWindowController.m |    1 +
 2 files changed, 2 insertions(+)

diff --git a/NEWS b/NEWS
index e3b5ead..027b75d 100644
--- a/NEWS
+++ b/NEWS
@@ -14,6 +14,7 @@ Mac OS X interface:
  * Fix issue which prevented to enable more than one video filter on Mavericks
  * Fix an issue which could prevent automatic UI language settings from working
  * Fix opening subtitles files through drag & drop or double-clicking
+ * Fix crash when closing window without decorations
  * Option to control VLC's iTunes pausing behavior is more easy to find
  * Improved UI resetting when requested in the preferences
 
diff --git a/modules/gui/macosx/VLCVoutWindowController.m b/modules/gui/macosx/VLCVoutWindowController.m
index fb934b8..595a27c 100644
--- a/modules/gui/macosx/VLCVoutWindowController.m
+++ b/modules/gui/macosx/VLCVoutWindowController.m
@@ -94,6 +94,7 @@
         BOOL b_no_video_deco_only = !b_video_wallpaper;
         o_new_video_window = [[VLCVideoWindowCommon alloc] initWithContentRect:window_rect styleMask:mask backing:NSBackingStoreBuffered defer:YES];
         [o_new_video_window setDelegate:o_new_video_window];
+        [o_new_video_window setReleasedWhenClosed: NO];
 
         if (b_video_wallpaper)
             [o_new_video_window setLevel:CGWindowLevelForKey(kCGDesktopWindowLevelKey) + 1];



More information about the vlc-commits mailing list