Page 1 of 1

Callbacks are calling even decode fails

Posted: 26 Nov 2018 12:27
by emrahustun
Hi,

I have an application running on h264 stream over rtsp.
On a network issue, when decode exception occurs, libvlc_video_set_callbacks are calling with the old data. So I get the same frame over and over again. (Buffer wont change)

Console prints;
Image

How can I make it not to call callback function on this kind of error?
Or is there any way to catch these errors with a hook?

Thanks.

Re: Callbacks are calling even decode fails

Posted: 27 Nov 2018 03:19
by mfkl
Hi,

Have you tried listening for the libvlc_MediaPlayerEncounteredError event?
You might wanna try disabling hardware decoding just to check also.

Re: Callbacks are calling even decode fails

Posted: 27 Nov 2018 11:18
by emrahustun
Thank you for your advice. But libvlc_MediaPlayerEncounteredError won't cache any of these errors. Obviously these exceptions are unhandled.
And disabling hw decoding change nothing.

Do you have any idea which sub-library (or module?) prints these errors?
I couldn't find in source codes.

Re: Callbacks are calling even decode fails

Posted: 27 Nov 2018 19:22
by RĂ©mi Denis-Courmont
libavcodec