Bug#665732: reopen: vlc: GUI latency/unresponsiveness to clicks on control options

Rémi Denis-Courmont remi at remlab.net
Tue Feb 26 21:13:08 UTC 2013


tags 665732 = confirmed upstream
forwarded 665732 https://trac.videolan.org/vlc/ticket/8240
found 665732 2.0.5-1
thanks

Le mardi 26 février 2013 22:17:49, Rémi Denis-Courmont a écrit :
> Le mardi 26 février 2013 17:33:21, Johann Klammer a écrit :
> > Adding a usleep(10000) after the last aout_unlock() in aout_DecPlay() in
> > src/audio_output/dec.c solves the problem for me.
> 
> Unfortunately that does not really help pinpoint the problem. It is likely
> a race, but it could be anywhere. Without a stack trace of the freeze or a
> way to reproduce the problem, there is nothing I, as a VLC developer, can
> do about this bug report.

Nevermind, I think I found the problem thanks to Johann's hint. Depending on 
the relative dimension of the ALSA output buffer and the VLC decoded audio 
buffer, the UI thread may never get scheduled when it tries to change the 
volume or the mute flag.

A proper fix may be too invasive for VLC 2.0.x though. Adding a sched_yield() 
call after aout_unlock() in aout_DecPlay() might work around the problem in 
the mean time.

-- 
Rémi Denis-Courmont
http://www.remlab.net/



More information about the pkg-multimedia-maintainers mailing list