Commit 2c691e30 authored by Patrick Keroulas's avatar Patrick Keroulas Committed by Guillaume Roguez
Browse files

audio: fix segfault when no audio layer is provided

Audio layer may not required in case of text/video messaging only.
Return a warn message and a null pointer to avoid further random
memory access.

Change-Id: I8db9ee3cd1333da76f85d2a7bbd91bf083291328
Tuleap: #220
parent 23ee9809
......@@ -407,6 +407,9 @@ AudioPreference::createAudioLayer()
return nullptr;
#endif // __ANDROID__
RING_WARN("No audio layer provided");
return nullptr;
void AudioPreference::serialize(YAML::Emitter &out)
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