Skip to content

overlay:update() is ignored during pause events #8350

Closed
@darsain

Description

@darsain
  • mpv 0.32.0-821-g38275338ee built on Sun Nov 22 17:00:03 +08 2020
  • shinchiro
  • Windows 10

Description

Assuming:

local ov = mp.create_osd_overlay('ass-events')

Updating the ov.data and calling ov:update() during pause event on windows will be ignored and not update the overlay.

Reproduction steps

I've isolated the bug into this script: https://0x0.st/i7mf.lua

It renders a pause indicator when playback is paused.

  1. install the script
  2. open any video on windows
  3. spam pause

Most of the time, the indicator won't be rendered when video is paused.

In my tests, at least 40ms delay is needed before calling ov:update() for it to render consistently, but that might differ for others.

Log file

https://0x0.st/i7mW.txt

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions