Commit 08594b01 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

qt: fix race on input_item_t.p_stats

p_stats is written with the input item lock (by the input thread).
Thus the input item lock is necessary to read and dereference p_stats.

(cherry picked from commit 996f66c6)
parent 5e5379ef
......@@ -646,6 +646,11 @@ void InputStatsPanel::update( input_item_t *p_item )
if ( !isVisible() ) return;
assert( p_item );
if( p_item->p_stats == NULL )
vlc_mutex_lock( &p_item->p_stats->lock );
#define UPDATE_INT( widget, calc... ) \
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