Commit 96b97b16 authored by Ilkka Ollakka's avatar Ilkka Ollakka

Qt4: add mutex-lockin when accessing selector-names

parent b3b361b0
......@@ -322,7 +322,12 @@ QVariant PLModel::data( const QModelIndex &index, int role ) const
int metadata = 1;
if( item->model->i_depth == DEPTH_SEL )
return QVariant( QString( qfu( item->p_input->psz_name ) ) );
{
vlc_mutex_lock( &item->p_input->lock );
QString returninfo = QString( qfu( item->p_input->psz_name ) );
vlc_mutex_unlock( &item->p_input->lock );
return QVariant(returninfo);
}
while( metadata < COLUMN_END )
{
......
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