fossmium / OneDrive-Cloud-Player

OneDrive Cloud Player is a media player dedicated for streaming files directly from OneDrive.
GNU General Public License v2.0
60 stars 7 forks source link

Exception thrown when leaving video early #71

Closed TimGels closed 2 years ago

TimGels commented 2 years ago

When playing a video and immediately returning after, the application throws an exception

Exception thrown: 'System.NullReferenceException' in OneDrive-Cloud-Player.exe

afbeelding

This is most likely caused by the volume changed event firing from LibVLC(sharp) after the MediaPlayer object has been disposed of. Methods that subscribe to that event and try to use the MediaPlayer will then encounter a MediaPlayer that is not set resulting in an exception.