diff options
author | wm4 <wm4@nowhere> | 2016-01-31 22:02:02 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2016-01-31 22:02:02 +0100 |
commit | c440ee99a4dddb5458c75339cf8cef947a55edef (patch) | |
tree | a7f41c892b42d54d9eddfa5dabf24290898a511c /input | |
parent | 006c9694c0990a05eb8f967448489958b6d7a5e8 (diff) | |
download | mpv-c440ee99a4dddb5458c75339cf8cef947a55edef.tar.bz2 mpv-c440ee99a4dddb5458c75339cf8cef947a55edef.tar.xz |
audio: fix a case of going to sleep before playback start
This code is tricky because it has to wakeup the mainloop to make
progressing during syncing audio, but also has to avoid waking it up
when it's not needed. Failure to do so either burns CPU by not ever
going to sleep, or causes apparent "freezes" by going to sleep (and it
will continue if the mainloop is woken up e.g. due to user input).
In this case, simply starting A/V playback with --start=5 and removing
an unrelated wakeup in osd.c can trigger such a "freeze". The unrelated
wakeup did hide this bug, nonetheless it's a bug.
(Can't wait to rewrite this shitty audio resync code. And it's all my
fault.)
Diffstat (limited to 'input')
0 files changed, 0 insertions, 0 deletions