Commit a00d4120 authored by Max Kellermann's avatar Max Kellermann

player/Thread: initialize play_audio_format, fixes assertion

This fixes an assertion failure caused by resuming playback before the decoder has finished startup.
parent 5fb39658
......@@ -5,6 +5,7 @@ ver 0.20.10 (not yet released)
- aiff: fix FORM chunk size endianess (is big-endian)
* mixer
- osx: add a mixer for OSX.
* fix crash when resuming playback before decoder is ready
* fix crash on Windows
ver 0.20.9 (2017/06/04)
......
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment