Page 1 of 1

Where are the callbacks registered with libvlc_media_read_cb called?

Posted: 13 Apr 2018 13:05
by maztan
Hello, I need to change the buffer size passed to read callback registered with libvlc_media_read_cb(...) but can't find where those callbacks are actually called. I tried chenging module imem_access but without result.

Re: Where are the callbacks registered with libvlc_media_read_cb called?

Posted: 13 Apr 2018 20:05
by Rémi Denis-Courmont
modules/access/imem-access.c

Re: Where are the callbacks registered with libvlc_media_read_cb called?

Posted: 14 Apr 2018 06:19
by maztan
Is there any reason why this works very slow? It takes 20-30 seconds to open an MP4 from hard drive this way. I can't just pass the MP4 file path here for irrelevant reasons, I just can't.

Re: Where are the callbacks registered with libvlc_media_read_cb called?

Posted: 14 Apr 2018 08:27
by Rémi Denis-Courmont
Because your callbacks are slow?