[vlc-commits] gui/minimal_macosx: Fix compilation

Marvin Scholz git at videolan.org
Sun Nov 26 02:18:19 CET 2017


vlc | branch: master | Marvin Scholz <epirat07 at gmail.com> | Sun Nov 26 02:02:59 2017 +0100| [bdd834f01f2547577795894547c9cc0c9670dbb5] | committer: Marvin Scholz

gui/minimal_macosx: Fix compilation

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

 modules/gui/minimal_macosx/VLCMinimalVoutWindow.m | 2 +-
 modules/gui/minimal_macosx/intf.m                 | 8 ++------
 2 files changed, 3 insertions(+), 7 deletions(-)

diff --git a/modules/gui/minimal_macosx/VLCMinimalVoutWindow.m b/modules/gui/minimal_macosx/VLCMinimalVoutWindow.m
index 4998e6b03c..e09369b207 100644
--- a/modules/gui/minimal_macosx/VLCMinimalVoutWindow.m
+++ b/modules/gui/minimal_macosx/VLCMinimalVoutWindow.m
@@ -25,7 +25,7 @@
 /*****************************************************************************
  * Preamble
  *****************************************************************************/
-#import "VLCMain.h"
+
 #import "VLCMinimalVoutWindow.h"
 #import "misc.h"
 
diff --git a/modules/gui/minimal_macosx/intf.m b/modules/gui/minimal_macosx/intf.m
index 78fb7510e3..27ff54577b 100644
--- a/modules/gui/minimal_macosx/intf.m
+++ b/modules/gui/minimal_macosx/intf.m
@@ -35,9 +35,9 @@
 
 #include <vlc_common.h>
 #include <vlc_playlist.h>
+#include <vlc_interface.h>
 #include <vlc_vout_window.h>
 
-#import "VLCMain.h"
 #import "VLCMinimalVoutWindow.h"
 
 /*****************************************************************************
@@ -53,11 +53,7 @@ int OpenIntf (vlc_object_t *p_this)
     intf_thread_t *p_intf = (intf_thread_t*) p_this;
     msg_Dbg(p_intf, "Using minimal macosx interface");
 
-    p_intf->p_sys = malloc(sizeof(intf_sys_t));
-    if (p_intf->p_sys == NULL)
-        return VLC_ENOMEM;
-
-    memset(p_intf->p_sys, 0, sizeof(*p_intf->p_sys));
+    p_intf->p_sys = NULL;
 
     Run(p_intf);
 



More information about the vlc-commits mailing list