Commit c5100112 authored by Clément Stenac's avatar Clément Stenac

Process all playlist updates

parent c5b247f5
...@@ -470,7 +470,6 @@ void PLModel::ProcessItemRemoval( int i_id ) ...@@ -470,7 +470,6 @@ void PLModel::ProcessItemRemoval( int i_id )
if( i_id <= 0 ) return; if( i_id <= 0 ) return;
if( i_id == i_cached_id ) i_cached_id = -1; if( i_id == i_cached_id ) i_cached_id = -1;
i_cached_input_id = -1; i_cached_input_id = -1;
PLItem *item = FindById( rootItem, i_id ); PLItem *item = FindById( rootItem, i_id );
if( item ) if( item )
item->remove( item ); item->remove( item );
...@@ -745,7 +744,7 @@ static int PlaylistChanged( vlc_object_t *p_this, const char *psz_variable, ...@@ -745,7 +744,7 @@ static int PlaylistChanged( vlc_object_t *p_this, const char *psz_variable,
vlc_value_t oval, vlc_value_t nval, void *param ) vlc_value_t oval, vlc_value_t nval, void *param )
{ {
PLModel *p_model = (PLModel *) param; PLModel *p_model = (PLModel *) param;
p_model->b_need_update = VLC_TRUE; // p_model->b_need_update = VLC_TRUE;
return VLC_SUCCESS; return VLC_SUCCESS;
} }
...@@ -787,8 +786,8 @@ static int ItemAppended( vlc_object_t *p_this, const char *psz_variable, ...@@ -787,8 +786,8 @@ static int ItemAppended( vlc_object_t *p_this, const char *psz_variable,
if( ++p_model->i_items_to_append >= 50 ) if( ++p_model->i_items_to_append >= 50 )
{ {
p_model->b_need_update = VLC_TRUE; // p_model->b_need_update = VLC_TRUE;
return VLC_SUCCESS; // return VLC_SUCCESS;
} }
PLEvent *event = new PLEvent( p_add ); PLEvent *event = new PLEvent( p_add );
QApplication::postEvent( p_model, static_cast<QEvent*>(event) ); QApplication::postEvent( p_model, static_cast<QEvent*>(event) );
......
...@@ -145,6 +145,7 @@ static void Init( intf_thread_t *p_intf ) ...@@ -145,6 +145,7 @@ static void Init( intf_thread_t *p_intf )
app->setQuitOnLastWindowClosed( false ); app->setQuitOnLastWindowClosed( false );
app->exec(); app->exec();
// fprintf( stderr, "Qt execution terminated\n" );
MainInputManager::killInstance(); MainInputManager::killInstance();
delete p_intf->p_sys->p_mi; delete p_intf->p_sys->p_mi;
} }
......
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