Commit 0756eece authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Compile fix (not functional)

I don't quite understand why Qt4 would subscribe to messages all the
time rather than only when the dialog is on.
parent e63fffe0
...@@ -134,6 +134,7 @@ void MessagesDialog::updateTab( int index ) ...@@ -134,6 +134,7 @@ void MessagesDialog::updateTab( int index )
void MessagesDialog::updateLog() void MessagesDialog::updateLog()
{ {
#if 0
msg_subscription_t *p_sub = p_intf->p_sys->p_sub; msg_subscription_t *p_sub = p_intf->p_sys->p_sub;
int i_start; int i_start;
...@@ -196,6 +197,7 @@ void MessagesDialog::updateLog() ...@@ -196,6 +197,7 @@ void MessagesDialog::updateLog()
p_sub->i_start = i_start; p_sub->i_start = i_start;
vlc_mutex_unlock( p_sub->p_lock ); vlc_mutex_unlock( p_sub->p_lock );
} }
#endif
} }
void MessagesDialog::buildTree( QTreeWidgetItem *parentItem, void MessagesDialog::buildTree( QTreeWidgetItem *parentItem,
......
...@@ -264,7 +264,7 @@ static int Open( vlc_object_t *p_this ) ...@@ -264,7 +264,7 @@ static int Open( vlc_object_t *p_this )
/* Access to the playlist */ /* Access to the playlist */
p_intf->p_sys->p_playlist = pl_Hold( p_intf ); p_intf->p_sys->p_playlist = pl_Hold( p_intf );
/* Listen to the messages */ /* Listen to the messages */
p_intf->p_sys->p_sub = msg_Subscribe( p_intf ); //p_intf->p_sys->p_sub = msg_Subscribe( p_intf->p_libvlc, NULL, NULL );
/* one settings to rule them all */ /* one settings to rule them all */
var_Create( p_this, "window_widget", VLC_VAR_ADDRESS ); var_Create( p_this, "window_widget", VLC_VAR_ADDRESS );
...@@ -298,7 +298,7 @@ static void Close( vlc_object_t *p_this ) ...@@ -298,7 +298,7 @@ static void Close( vlc_object_t *p_this )
} }
vlc_object_release( p_intf->p_sys->p_playlist ); vlc_object_release( p_intf->p_sys->p_playlist );
msg_Unsubscribe( p_intf, p_intf->p_sys->p_sub ); //msg_Unsubscribe( p_intf->p_sys->p_sub );
free( p_intf->p_sys ); free( p_intf->p_sys );
} }
......
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