[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 18:58:31 CET 2020


Le tiistaina 3. marraskuuta 2020, 19.42.11 EET Zhao Zhili a écrit :
> > On Nov 3, 2020, at 10:09 PM, Rémi Denis-Courmont <remi at remlab.net> wrote:
> > 
> > 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.
> 
> Without the revert, I can't make any progress on any part of the code.
> I can keep the revert on my local branch for a period of time.

You can do what was already done for the more important window size code: 
comment out the offending code and add a FIXME.

-- 
雷米‧德尼-库尔蒙
http://www.remlab.net/





More information about the vlc-devel mailing list