Where are the callbacks registered with libvlc_media_read_cb called?

This forum is about all development around libVLC.
maztan
Blank Cone
Blank Cone
Posts: 10
Joined: 13 Apr 2018 12:54

Where are the callbacks registered with libvlc_media_read_cb called?

Postby maztan » 13 Apr 2018 13:05

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.

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

Re: Where are the callbacks registered with libvlc_media_read_cb called?

Postby Rémi Denis-Courmont » 13 Apr 2018 20:05

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

maztan
Blank Cone
Blank Cone
Posts: 10
Joined: 13 Apr 2018 12:54

Re: Where are the callbacks registered with libvlc_media_read_cb called?

Postby maztan » 14 Apr 2018 06:19

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.

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

Re: Where are the callbacks registered with libvlc_media_read_cb called?

Postby Rémi Denis-Courmont » 14 Apr 2018 08:27

Because your callbacks are slow?
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 13 guests