mirror of
https://github.com/novatiq/packages.git
synced 2026-04-30 23:48:39 +01:00
mpd: Upgrade Music Player Daemon to 0.20.8
Signed-off-by: Ted Hess <thess@kitschensync.net>
This commit is contained in:
@@ -1,16 +1,16 @@
|
||||
--- a/src/decoder/plugins/FfmpegDecoderPlugin.cxx
|
||||
+++ b/src/decoder/plugins/FfmpegDecoderPlugin.cxx
|
||||
@@ -465,6 +465,13 @@ ffmpeg_probe(Decoder *decoder, InputStre
|
||||
@@ -478,6 +478,13 @@ ffmpeg_probe(DecoderClient *client, Inpu
|
||||
|
||||
unsigned char buffer[BUFFER_SIZE];
|
||||
size_t nbytes = decoder_read(decoder, is, buffer, BUFFER_SIZE);
|
||||
size_t nbytes = decoder_read(client, is, buffer, BUFFER_SIZE);
|
||||
+
|
||||
+ if ((nbytes > 0) && (nbytes < 1024))
|
||||
+ {
|
||||
+ // Gobble some more data if header is small
|
||||
+ nbytes += decoder_read(decoder, is, buffer + nbytes, BUFFER_SIZE - nbytes);
|
||||
+ nbytes += decoder_read(client, is, buffer + nbytes, BUFFER_SIZE - nbytes);
|
||||
+ }
|
||||
+
|
||||
if (nbytes <= PADDING || !is.LockRewind(IgnoreError()))
|
||||
if (nbytes <= PADDING)
|
||||
return nullptr;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user