I need to stop "Peek" a multimedia file in my stream filter plugin if an error occurs. I'm doing it like that:
Code: Select all
static int Peek(stream_t *stream, const uint8_t **pbuf, unsigned int len)
{
stream_sys_t *p_sys = stream->p_sys;
if (stream->b_error)
return VLC_EGENERIC;
QByteArray peekBuffer = p_sys->bufferManager->getBuffer(p_sys->offset, len);
if (peekBuffer.isNull()) {
stream->b_error = true;
return VLC_EGENERIC;
}
*pbuf = (const uint8_t *)peekBuffer.constData();
return len;
}
Someone can help me to stop the song without show this windows please?
Thank you very much!