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:
parent
7b7fb5acd5
commit
6b60d1e71f
@ -81,7 +81,7 @@ pcm_stream_decode(DecoderClient &client, InputStream &is)
|
|||||||
if (is_float)
|
if (is_float)
|
||||||
audio_format.format = SampleFormat::FLOAT;
|
audio_format.format = SampleFormat::FLOAT;
|
||||||
|
|
||||||
{
|
if (mime != nullptr) {
|
||||||
const auto mime_parameters = ParseMimeTypeParameters(mime);
|
const auto mime_parameters = ParseMimeTypeParameters(mime);
|
||||||
|
|
||||||
/* MIME type parameters according to RFC 2586 */
|
/* MIME type parameters according to RFC 2586 */
|
||||||
|
Loading…
Reference in New Issue
Block a user