[DEBUG] build error with pulse

This commit is contained in:
Edouard DUPIN 2015-04-17 22:02:09 +02:00
parent 488b44b03b
commit 32c0784d3b

View File

@ -401,8 +401,7 @@ bool audio::orchestra::api::Pulse::probeDeviceOpen(uint32_t _device,
}
if (!m_private->threadRunning) {
m_private->threadRunning = true;
std11::shared_ptr<std11::thread> tmpThread(new std11::thread(&pulseaudio_callback, this));
m_private->thread = std::move(tmpThread);
m_private->thread = std11::make_shared<std11::thread>(&pulseaudio_callback, this);
if (m_private->thread == nullptr) {
ATA_ERROR("error creating thread.");
goto error;