[ekiga/ds-fix-boost-leaks] PTLIB: Fixed sink/source names.
- From: Damien Sandras <dsandras src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [ekiga/ds-fix-boost-leaks] PTLIB: Fixed sink/source names.
- Date: Sat, 31 Oct 2015 17:55:32 +0000 (UTC)
commit d299ca2bd5d6c82d21e52f9f15b06a0d40d2b30e
Author: Damien Sandras <dsandras seconix com>
Date: Sat Oct 31 18:35:21 2015 +0100
PTLIB: Fixed sink/source names.
My best guess is that they were hardcoded to "alsa" to comply with the
old HAL/DBUS component.
This code needs further fixing though.
.../components/ptlib/audioinput-manager-ptlib.cpp | 2 +-
.../components/ptlib/audiooutput-manager-ptlib.cpp | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/lib/engine/components/ptlib/audioinput-manager-ptlib.cpp
b/lib/engine/components/ptlib/audioinput-manager-ptlib.cpp
index a69fcd6..14c8c58 100644
--- a/lib/engine/components/ptlib/audioinput-manager-ptlib.cpp
+++ b/lib/engine/components/ptlib/audioinput-manager-ptlib.cpp
@@ -201,7 +201,7 @@ void GMAudioInputManager_ptlib::set_volume (unsigned volume)
bool GMAudioInputManager_ptlib::has_device(const std::string & source, const std::string & device_name,
Ekiga::AudioInputDevice & device)
{
- if (source == "alsa") {
+ if (source == "ALSA") {
device.type = DEVICE_TYPE;
device.source = "ALSA";
device.name = device_name;
diff --git a/lib/engine/components/ptlib/audiooutput-manager-ptlib.cpp
b/lib/engine/components/ptlib/audiooutput-manager-ptlib.cpp
index 02caeac..3115c8e 100644
--- a/lib/engine/components/ptlib/audiooutput-manager-ptlib.cpp
+++ b/lib/engine/components/ptlib/audiooutput-manager-ptlib.cpp
@@ -204,7 +204,7 @@ void GMAudioOutputManager_ptlib::set_volume (Ekiga::AudioOutputPS ps, unsigned v
bool GMAudioOutputManager_ptlib::has_device(const std::string & sink, const std::string & device_name,
Ekiga::AudioOutputDevice & device)
{
- if (sink == "alsa") {
+ if (sink == "ALSA") {
device.type = DEVICE_TYPE;
device.source = "ALSA";
device.name = device_name;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]