[vlc-commits] Qt4: 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:25:44 2013 +0200| [70d9e0fc890d834d22f33acd655f7a0d26d09f12] | committer: Rémi Denis-Courmont

Qt4: use vlc_LogSet()

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

 modules/gui/qt4/dialogs/messages.cpp |    4 ++--
 modules/gui/qt4/dialogs/messages.hpp |    1 -
 2 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/modules/gui/qt4/dialogs/messages.cpp b/modules/gui/qt4/dialogs/messages.cpp
index 03bf6f9..ef00245 100644
--- a/modules/gui/qt4/dialogs/messages.cpp
+++ b/modules/gui/qt4/dialogs/messages.cpp
@@ -130,7 +130,7 @@ MessagesDialog::MessagesDialog( intf_thread_t *_p_intf)
     restoreWidgetPosition( "Messages", QSize( 600, 450 ) );
 
     /* Hook up to LibVLC messaging */
-    vlc_Subscribe( &sub, MsgCallback, this );
+    vlc_LogSet( p_intf->p_libvlc, MsgCallback, this );
 
     buildTree( NULL, VLC_OBJECT( p_intf->p_libvlc ) );
 }
@@ -138,7 +138,7 @@ MessagesDialog::MessagesDialog( intf_thread_t *_p_intf)
 MessagesDialog::~MessagesDialog()
 {
     saveWidgetPosition( "Messages" );
-    vlc_Unsubscribe( &sub );
+    vlc_LogSet( p_intf->p_libvlc, NULL, NULL );
 };
 
 void MessagesDialog::changeVerbosity( int i_verbosity )
diff --git a/modules/gui/qt4/dialogs/messages.hpp b/modules/gui/qt4/dialogs/messages.hpp
index 503cb81..9963707 100644
--- a/modules/gui/qt4/dialogs/messages.hpp
+++ b/modules/gui/qt4/dialogs/messages.hpp
@@ -50,7 +50,6 @@ private:
     virtual ~MessagesDialog();
 
     Ui::messagesPanelWidget ui;
-    msg_subscription_t sub;
     static void sinkMessage( void *, msg_item_t *, unsigned );
     void customEvent( QEvent * );
     void sinkMessage( const MsgEvent * );



More information about the vlc-commits mailing list