Fix improper use of field in PlayerViewModel

This commit is contained in:
Matt Nadareski
2021-07-05 22:51:34 -07:00
parent 52ede7799f
commit 0ae58ab21c

View File

@@ -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);