From 38f19bbdf03047647bcfd28886d0ff8a84dc41fb Mon Sep 17 00:00:00 2001 From: Alex Date: Wed, 20 Jun 2018 15:31:05 +0300 Subject: [PATCH] libtgvoip: return nullptr to avoid compile err p2 Before that commit the function void *AudioOutputALSA::StartThread() doesn't return any values. Also please note that this fix should be ported after syncing libtgvoip to upstream! Related to #153. --- Telegram/ThirdParty/libtgvoip/os/linux/AudioOutputALSA.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Telegram/ThirdParty/libtgvoip/os/linux/AudioOutputALSA.cpp b/Telegram/ThirdParty/libtgvoip/os/linux/AudioOutputALSA.cpp index bad556179..8717358e4 100644 --- a/Telegram/ThirdParty/libtgvoip/os/linux/AudioOutputALSA.cpp +++ b/Telegram/ThirdParty/libtgvoip/os/linux/AudioOutputALSA.cpp @@ -74,6 +74,7 @@ bool AudioOutputALSA::IsPlaying(){ void* AudioOutputALSA::StartThread(void* arg){ ((AudioOutputALSA*)arg)->RunThread(); + return nullptr; } void AudioOutputALSA::RunThread(){ @@ -179,4 +180,4 @@ void AudioOutputALSA::EnumerateDevices(std::vector& devs){ } dlclose(lib); -} \ No newline at end of file +}