[vlc-devel] [PATCH] Revert "video_output: translate the mouse coordinates to display coordinates early"

Rémi Denis-Courmont remi at remlab.net
Tue Nov 3 15:09:19 CET 2020


Le tiistaina 3. marraskuuta 2020, 13.56.58 EET Steve Lhomme a écrit :
> This reverts commit 5b2129eda58a4a19d37a9fb33e64af3777555233.
> 
> This causes deadlocks with display modules where the display and windowing
> is tied.

As I *already* pointed out earlier, no, this patch did not introduce any 
deadlock. Pretty much all (other) window events also take the display lock. 
That lock ordering constraint on window events is preexisting and remains with 
or without this revert. Conversely, any deadlock would be preexisting and 
remaining unfixed.

Indeed, in the case of the MacOS vout, that deadlock bug is even explicitly 
documented in the code already (look for FIXME).

All this revert really does on (not already broken setups) is increase the 
latency and thus the error on the mouse coordinate translation. With the 
revert, translation is bottlenecked by whatever the video output control 
thread does.

-1

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





More information about the vlc-devel mailing list