From 0ae58ab21c7e41512cc77e01e8fc0cd3f592aef7 Mon Sep 17 00:00:00 2001 From: Matt Nadareski Date: Mon, 5 Jul 2021 22:51:34 -0700 Subject: [PATCH] Fix improper use of field in PlayerViewModel --- RedBookPlayer.Common/PlayerViewModel.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/RedBookPlayer.Common/PlayerViewModel.cs b/RedBookPlayer.Common/PlayerViewModel.cs index 04c62a2..e82ed29 100644 --- a/RedBookPlayer.Common/PlayerViewModel.cs +++ b/RedBookPlayer.Common/PlayerViewModel.cs @@ -193,7 +193,7 @@ namespace RedBookPlayer.Common public void Init(string path, bool generateMissingToc, bool loadHiddenTracks, bool loadDataTracks, bool autoPlay, int defaultVolume) { // Stop current playback, if necessary - if(Playing != null) Playing = null; + if(Playing != null) Stop(); // Create and attempt to initialize new Player _player = new Player(path, generateMissingToc, loadHiddenTracks, loadDataTracks, autoPlay, defaultVolume);