[vlc-commits] macosx: use vlc_LogSet()
Rémi Denis-Courmont
git at videolan.org
Mon Mar 18 22:15:27 CET 2013
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Mon Mar 18 22:27:23 2013 +0200| [0f395d9fd7dbd2cca64ac546585fea2010f013ca] | committer: Rémi Denis-Courmont
macosx: use vlc_LogSet()
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=0f395d9fd7dbd2cca64ac546585fea2010f013ca
---
modules/gui/macosx/intf.h | 3 ---
modules/gui/macosx/intf.m | 4 ++--
2 files changed, 2 insertions(+), 5 deletions(-)
diff --git a/modules/gui/macosx/intf.h b/modules/gui/macosx/intf.h
index 224bd58..0841919 100644
--- a/modules/gui/macosx/intf.h
+++ b/modules/gui/macosx/intf.h
@@ -67,9 +67,6 @@ struct intf_sys_t
bool b_input_update;
bool b_aout_update;
bool b_vout_update;
-
- /* The messages window */
- msg_subscription_t sub;
};
/*****************************************************************************
diff --git a/modules/gui/macosx/intf.m b/modules/gui/macosx/intf.m
index 03ed262..6a3a92d 100644
--- a/modules/gui/macosx/intf.m
+++ b/modules/gui/macosx/intf.m
@@ -115,7 +115,7 @@ int OpenIntf (vlc_object_t *p_this)
memset(p_intf->p_sys, 0, sizeof(*p_intf->p_sys));
/* subscribe to LibVLCCore's messages */
- vlc_Subscribe(&p_intf->p_sys->sub, MsgCallback, NULL);
+ vlc_LogSet(p_this->p_libvlc, MsgCallback, NULL);
Run(p_intf);
@@ -890,7 +890,7 @@ static VLCMain *_o_sharedMainInstance = nil;
[o_eyetv release];
/* unsubscribe from libvlc's debug messages */
- vlc_Unsubscribe(&p_intf->p_sys->sub);
+ vlc_LogSet(p_intf->p_libvlc, NULL, NULL);
[o_msg_arr removeAllObjects];
[o_msg_arr release];
More information about the vlc-commits
mailing list