Commit 70d9e0fc authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Qt4: use vlc_LogSet()

parent 12820072
......@@ -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 )
......
......@@ -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 * );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment