Merge branch 'mpg-duration-fix' of https://github.com/boedy/MPD
This commit is contained in:
commit
965c466e9b
|
@ -353,6 +353,10 @@ mpd_mpg123_stream_decode(DecoderClient &client, InputStream &is)
|
||||||
};
|
};
|
||||||
|
|
||||||
mpd_mpg123_open_stream(*handle, iohandle);
|
mpd_mpg123_open_stream(*handle, iohandle);
|
||||||
|
|
||||||
|
if (is.KnownSize())
|
||||||
|
mpg123_set_filesize(handle, is.GetSize());
|
||||||
|
|
||||||
Decode(client, *handle, is.IsSeekable());
|
Decode(client, *handle, is.IsSeekable());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue