decoder/pcm: add missing nullptr check

Fixes a potential crash bug which is actually unreachable, because the
"pcm" plugin is never invoked when there is no (matching) MIME type.
This commit is contained in:
Max Kellermann 2017-04-24 20:36:55 +02:00
parent 7b7fb5acd5
commit 6b60d1e71f

View File

@ -81,7 +81,7 @@ pcm_stream_decode(DecoderClient &client, InputStream &is)
if (is_float)
audio_format.format = SampleFormat::FLOAT;
{
if (mime != nullptr) {
const auto mime_parameters = ParseMimeTypeParameters(mime);
/* MIME type parameters according to RFC 2586 */