Memory Leak when playing and stopping using video filters
Summary
When using libvlc with video filters, memory consumption goes to the moon when toggling between play and pause.
Minimal project and steps to reproduce
I made a small project to demonstrate this behavior.
VlcMemoryTest Project on GitHub
- Start the programm and look at the memory consumption in the task manager. It should be around 250 MB.
- Click Play and then Stop maybe 10 times. The memory consumption will stay at around 250 MB.
- Go to the MainWindow.xaml.cs in the project and add a video filter by un-commenting line 24.
- Rebuild the project and start the programm again. Memory consumption should be around 250 MB.
- Click Play and then Stop maybe 10 times. Memory consumption will rise to 700 MB.
- Do this ten times more and memory consumption will rise to 1200 MB.
What is the current bug behavior?
Memory rises and is not lowered when clicking play and stop multiple times with active video filters.
What is the expected correct behavior?
Memory does not rise when clicking play and stop multiple times with active video filters.
Does it work on other plaforms? Does it work with the official VLC apps?
Not tested
Relevant LibVLC logs and/or screenshots
Environment
- OS: Windows 11 x64
- VideoLan.Libvlc.Windows version and architecture: 3.0.20
- LibVLCSharp.WPF version: 3.8.2