Commit 6b60d1e7 authored by Max Kellermann's avatar Max Kellermann

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.
parent 7b7fb5ac
......@@ -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 */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment