mirror of
https://github.com/overte-org/overte.git
synced 2025-08-06 14:59:14 +02:00
fix crash in audio-mixer if no plugins installed
This commit is contained in:
parent
2b719e12f7
commit
6d7c8d5759
1 changed files with 4 additions and 2 deletions
|
@ -348,8 +348,10 @@ void AudioMixerClientData::setupCodec(CodecPluginPointer codec, const QString& c
|
||||||
cleanupCodec(); // cleanup any previously allocated coders first
|
cleanupCodec(); // cleanup any previously allocated coders first
|
||||||
_codec = codec;
|
_codec = codec;
|
||||||
_selectedCodecName = codecName;
|
_selectedCodecName = codecName;
|
||||||
|
if (codec) {
|
||||||
_encoder = codec->createEncoder(AudioConstants::SAMPLE_RATE, AudioConstants::STEREO);
|
_encoder = codec->createEncoder(AudioConstants::SAMPLE_RATE, AudioConstants::STEREO);
|
||||||
_decoder = codec->createDecoder(AudioConstants::SAMPLE_RATE, AudioConstants::MONO);
|
_decoder = codec->createDecoder(AudioConstants::SAMPLE_RATE, AudioConstants::MONO);
|
||||||
|
}
|
||||||
|
|
||||||
auto avatarAudioStream = getAvatarAudioStream();
|
auto avatarAudioStream = getAvatarAudioStream();
|
||||||
if (avatarAudioStream) {
|
if (avatarAudioStream) {
|
||||||
|
|
Loading…
Reference in a new issue