summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2018-02-17 13:10:04 +0100
committerMax Kellermann <max@musicpd.org>2018-02-17 13:33:53 +0100
commit026aef7465506429ee94e7b5b68e36ab8ed5a849 (patch)
tree98e41d2b3e99db64a7fafdc25707e67dc64ad77b /python
parentb53a23b51b8d02a709af0bc8681a25197f12481b (diff)
decoder/flac: move the SubmitData() call out of the callback
This addresses two problems: 1. the libFLAC write callback had to send an error status to its caller when SubmitData() returned a command; this disrupted libFLAC and the resulting command could not be used for anything; 2. the libFLAC function FLAC__stream_decoder_seek_absolute() also calls the write callback, but its result cannot be used, because seeking is still in progress, so we lose all data from one FLAC frame. By moving the SubmitData() call until after CommandFinished(), we avoid losing this data. This fixes another part of #113
Diffstat (limited to 'python')
0 files changed, 0 insertions, 0 deletions