Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
No related merge requests found
...@@ -407,6 +407,9 @@ AudioPreference::createAudioLayer() ...@@ -407,6 +407,9 @@ AudioPreference::createAudioLayer()
return nullptr; return nullptr;
#endif #endif
#endif // __ANDROID__ #endif // __ANDROID__
RING_WARN("No audio layer provided");
return nullptr;
} }
void AudioPreference::serialize(YAML::Emitter &out) void AudioPreference::serialize(YAML::Emitter &out)
... ...
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment