Stop playing song in a stream filter plugin
Posted: 18 Apr 2013 15:48
Hi!
I need to stop "Peek" a multimedia file in my stream filter plugin if an error occurs. I'm doing it like that:
It stops correctly, but the "Errors and Warnings" window appears when I stop the song like that with a "VLC can not recognize the input format" error.
Someone can help me to stop the song without show this windows please?
Thank you very much!
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!