load / unload media/mediaplayer without loosing RAM memory
Posted: 27 Apr 2019 11:18
Hi,
I try to load /unload many files inside the same application but each time I unload a media+mediaplayer (libvlc_media_player_release/libvlc_media_release) then load (libvlc_media_new_path/libvlc_media_player_new_from_media) I loose some memory (I checked my application and when not calling the load/unload methods memory stays at 60Mb all the time).
Here is the full log (verbose=4) : https://drive.google.com/file/d/1edHad8 ... sp=sharing but I did not see anything about memory (load video1.mp4 then video2.mp4 then video1.mp4 and loose hundreds of Mb in RAM ).
By the way, I use libVLC 4 with OpenGL callbacks.
I may not understand well the way to load/unload the media/mediaplayer. Have you got an idea to fix that ?
Regards
I try to load /unload many files inside the same application but each time I unload a media+mediaplayer (libvlc_media_player_release/libvlc_media_release) then load (libvlc_media_new_path/libvlc_media_player_new_from_media) I loose some memory (I checked my application and when not calling the load/unload methods memory stays at 60Mb all the time).
Here is the full log (verbose=4) : https://drive.google.com/file/d/1edHad8 ... sp=sharing but I did not see anything about memory (load video1.mp4 then video2.mp4 then video1.mp4 and loose hundreds of Mb in RAM ).
By the way, I use libVLC 4 with OpenGL callbacks.
I may not understand well the way to load/unload the media/mediaplayer. Have you got an idea to fix that ?
Regards