[vlc-commits] macOS: Do not use weak delegate

Marvin Scholz git at videolan.org
Sat Jun 17 18:13:43 CEST 2017


vlc | branch: master | Marvin Scholz <epirat07 at gmail.com> | Sat Jun 17 18:10:48 2017 +0200| [1ff22d923704546f28d88adf1e30436fe435169d] | committer: Marvin Scholz

macOS: Do not use weak delegate

Forming a weak reference to a NSWindowController is not possible on
OS X 10.7 and causes a runtime error, resulting in a crash.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=1ff22d923704546f28d88adf1e30436fe435169d
---

 modules/gui/macosx/VLCRendererDiscovery.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/gui/macosx/VLCRendererDiscovery.h b/modules/gui/macosx/VLCRendererDiscovery.h
index 57d7fed0c1..f7cb86067b 100644
--- a/modules/gui/macosx/VLCRendererDiscovery.h
+++ b/modules/gui/macosx/VLCRendererDiscovery.h
@@ -37,7 +37,7 @@
 /**
  The delegate that is called when a \c VLCRendererItem is added or deleted
  */
- at property (weak) id<VLCRendererDiscoveryDelegate> delegate;
+ at property (assign) id<VLCRendererDiscoveryDelegate> delegate;
 
 /**
  The name of the renderer discovery module



More information about the vlc-commits mailing list