[vlc-commits] macosx: improve logging for startup and shutdown
David Fuhrmann
git at videolan.org
Sat Dec 5 16:57:16 CET 2015
vlc | branch: master | David Fuhrmann <dfuhrmann at videolan.org> | Sat Dec 5 16:38:38 2015 +0100| [f312e26702a01c9b5476dee5c6a06f94decac8c8] | committer: David Fuhrmann
macosx: improve logging for startup and shutdown
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=f312e26702a01c9b5476dee5c6a06f94decac8c8
---
modules/gui/macosx/InputManager.m | 2 ++
modules/gui/macosx/PLModel.m | 2 ++
modules/gui/macosx/intf.m | 1 +
3 files changed, 5 insertions(+)
diff --git a/modules/gui/macosx/InputManager.m b/modules/gui/macosx/InputManager.m
index d39c6a8..3703d1a 100644
--- a/modules/gui/macosx/InputManager.m
+++ b/modules/gui/macosx/InputManager.m
@@ -155,6 +155,8 @@ static int InputEvent(vlc_object_t *p_this, const char *psz_var,
{
self = [super init];
if(self) {
+ msg_Dbg(VLCIntf, "Initializing input manager");
+
o_main = o_mainObj;
var_AddCallback(pl_Get(VLCIntf), "input-current", InputThreadChanged, (__bridge void *)self);
diff --git a/modules/gui/macosx/PLModel.m b/modules/gui/macosx/PLModel.m
index ea5840b..57ea245 100644
--- a/modules/gui/macosx/PLModel.m
+++ b/modules/gui/macosx/PLModel.m
@@ -126,6 +126,7 @@ static int VolumeUpdated(vlc_object_t *p_this, const char *psz_var,
_outlineView = outlineView;
_playlist = plObj;
+ msg_Dbg(VLCIntf, "Initializing playlist model");
var_AddCallback(p_playlist, "item-change", PLItemUpdated, (__bridge void *)self);
var_AddCallback(p_playlist, "playlist-item-append", PLItemAppended, (__bridge void *)self);
var_AddCallback(p_playlist, "playlist-item-deleted", PLItemRemoved, (__bridge void *)self);
@@ -146,6 +147,7 @@ static int VolumeUpdated(vlc_object_t *p_this, const char *psz_var,
- (void)dealloc
{
+ msg_Dbg(VLCIntf, "Deinitializing playlist model");
var_DelCallback(p_playlist, "item-change", PLItemUpdated, (__bridge void *)self);
var_DelCallback(p_playlist, "playlist-item-append", PLItemAppended, (__bridge void *)self);
var_DelCallback(p_playlist, "playlist-item-deleted", PLItemRemoved, (__bridge void *)self);
diff --git a/modules/gui/macosx/intf.m b/modules/gui/macosx/intf.m
index 96fb2e7..61a609c 100644
--- a/modules/gui/macosx/intf.m
+++ b/modules/gui/macosx/intf.m
@@ -96,6 +96,7 @@ int OpenIntf (vlc_object_t *p_this)
[NSBundle loadNibNamed:@"MainMenu" owner:[[VLCMain sharedInstance] mainMenu]];
[[[VLCMain sharedInstance] mainWindow] makeKeyAndOrderFront:nil];
+ msg_Dbg(p_intf, "Finished loading macosx interface");
return VLC_SUCCESS;
}
}
More information about the vlc-commits
mailing list