Prevent a segfault when checking for playing tracks when none are queued.
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@690 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
@@ -124,7 +124,7 @@ PlayingTrack ()
|
||||
{
|
||||
// this is not a great way to detect whether the track is playing,
|
||||
// but as it should work during fast-forward/rewind, 'PlayingStream' can't be used
|
||||
if (is_sample_playing (sound_sample))
|
||||
if (sound_sample && is_sample_playing (sound_sample))
|
||||
{
|
||||
int last_track, last_page;
|
||||
LockMutex (track_mutex);
|
||||
|
||||
Reference in New Issue
Block a user