mirror of
https://github.com/mackron/miniaudio.git
synced 2026-04-21 15:56:58 +02:00
Don't crash when a decoding seek callback is unavailable.
This commit is contained in:
@@ -62865,6 +62865,10 @@ static ma_result ma_decoder_seek_bytes(ma_decoder* pDecoder, ma_int64 byteOffset
|
|||||||
{
|
{
|
||||||
MA_ASSERT(pDecoder != NULL);
|
MA_ASSERT(pDecoder != NULL);
|
||||||
|
|
||||||
|
if (pDecoder->onSeek != NULL) {
|
||||||
|
return MA_NOT_IMPLEMENTED;
|
||||||
|
}
|
||||||
|
|
||||||
return pDecoder->onSeek(pDecoder, byteOffset, origin);
|
return pDecoder->onSeek(pDecoder, byteOffset, origin);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user