player/Thread: initialize play_audio_format, fixes assertion

This fixes an assertion failure caused by resuming playback before the
decoder has finished startup.
This commit is contained in:
Max Kellermann
2017-08-23 17:43:49 +02:00
parent 5fb39658f1
commit a00d412008
2 changed files with 2 additions and 1 deletions

View File

@@ -135,7 +135,7 @@ class Player {
/**
* The current audio format for the audio outputs.
*/
AudioFormat play_audio_format;
AudioFormat play_audio_format = AudioFormat::Undefined();
/**
* The time stamp of the chunk most recently sent to the