[vlc-commits] macosx: Abort early in case getIntf() returns nil

David Fuhrmann git at videolan.org
Sat Apr 21 12:35:14 CEST 2018


vlc | branch: master | David Fuhrmann <dfuhrmann at videolan.org> | Sat Apr 21 12:30:37 2018 +0200| [de8f9ff8f55709902ea485b372c59abf43bd0f8e] | committer: David Fuhrmann

macosx: Abort early in case getIntf() returns nil

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

 modules/gui/macosx/VLCCoreInteraction.m | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/modules/gui/macosx/VLCCoreInteraction.m b/modules/gui/macosx/VLCCoreInteraction.m
index 04abf1a821..0b3e83eb5b 100644
--- a/modules/gui/macosx/VLCCoreInteraction.m
+++ b/modules/gui/macosx/VLCCoreInteraction.m
@@ -808,9 +808,11 @@ static int BossCallback(vlc_object_t *p_this, const char *psz_var,
 {
     NSArray<NSValue *> *vouts = getVouts();
     intf_thread_t *p_intf = getIntf();
-    playlist_t *p_playlist = pl_Get(p_intf);
     if (!p_intf)
         return;
+
+    playlist_t *p_playlist = pl_Get(p_intf);
+
     int i_type = 0;
     bool b_is_command = false;
     char const *psz_filter_type = [self getFilterType: psz_filter];



More information about the vlc-commits mailing list