• Max Kellermann's avatar
    player_thread: initialize chunk->times in silence generator · 76283c25
    Max Kellermann authored
    When waiting for the decoder to provide more data, the player thread
    generates silence chunks if needed.  However, it forgot to initialize
    the chunk.times attribute, which had now an undefined value.  This
    patch sets it to -1.0, meaning "value is undefined".  Add a ">= 0.0"
    check to audio_output_all_check().  This fixes spurious relative
    seeking errors, because sometimes, the "elapsed" value falls back to
    0.0.
    76283c25
Name
Last commit
Last update
doc Loading commit data...
m4 Loading commit data...
scripts Loading commit data...
src Loading commit data...
test Loading commit data...
.gitignore Loading commit data...
AUTHORS Loading commit data...
COPYING Loading commit data...
INSTALL Loading commit data...
Makefile.am Loading commit data...
NEWS Loading commit data...
README Loading commit data...
UPGRADING Loading commit data...
autogen.sh Loading commit data...
configure.ac Loading commit data...
valgrind.suppressions Loading commit data...