Callbacks are calling even decode fails

This forum is about all development around libVLC.
emrahustun
New Cone
New Cone
Posts: 2
Joined: 26 Nov 2018 12:18

Callbacks are calling even decode fails

Postby emrahustun » 26 Nov 2018 12:27

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.

mfkl
Developer
Developer
Posts: 739
Joined: 13 Jun 2017 10:41

Re: Callbacks are calling even decode fails

Postby mfkl » 27 Nov 2018 03:19

Hi,

Have you tried listening for the libvlc_MediaPlayerEncounteredError event?
You might wanna try disabling hardware decoding just to check also.
https://mfkl.github.io

emrahustun
New Cone
New Cone
Posts: 2
Joined: 26 Nov 2018 12:18

Re: Callbacks are calling even decode fails

Postby emrahustun » 27 Nov 2018 11:18

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.

Rémi Denis-Courmont
Developer
Developer
Posts: 15266
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: Callbacks are calling even decode fails

Postby Rémi Denis-Courmont » 27 Nov 2018 19:22

libavcodec
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 31 guests