Fix for bug cause by null pointer when loading audio library (#5945)

Signed-off-by: T.J. McGrath-Daly <tj.mcgrath.daly@huawei.com>

Co-authored-by: Tobias Alexander Franke <tobias.alexander.franke@huawei.com>
This commit is contained in:
tjmgd
2021-12-01 21:06:22 +00:00
committed by GitHub
parent 26e8fd59eb
commit 8feb4a1ff7
@@ -819,6 +819,11 @@ namespace Audio
}
else
{
if (!audioFileEntry->m_asyncStreamRequest)
{
audioFileEntry->m_asyncStreamRequest = streamer->CreateRequest();
}
streamer->Read(
audioFileEntry->m_asyncStreamRequest,
audioFileEntry->m_filePath.c_str(),