[ekiga/ds-gsettings3] Call Manager: Optimized code for individual changes of video options.
- From: Damien Sandras <dsandras src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [ekiga/ds-gsettings3] Call Manager: Optimized code for individual changes of video options.
- Date: Sun, 8 Dec 2013 17:35:26 +0000 (UTC)
commit 36ac351781ab0d5bb1090e8f3639a72449b2e90d
Author: Damien Sandras <dsandras beip be>
Date: Sun Dec 8 18:25:07 2013 +0100
Call Manager: Optimized code for individual changes of video options.
lib/engine/components/opal/opal-call-manager.cpp | 22 ++++++++++++++++------
1 files changed, 16 insertions(+), 6 deletions(-)
---
diff --git a/lib/engine/components/opal/opal-call-manager.cpp
b/lib/engine/components/opal/opal-call-manager.cpp
index f551aaf..2e0ba0a 100644
--- a/lib/engine/components/opal/opal-call-manager.cpp
+++ b/lib/engine/components/opal/opal-call-manager.cpp
@@ -1036,9 +1036,6 @@ CallManager::set_sip_endpoint (boost::shared_ptr<Opal::Sip::EndPoint> _sip_endpo
void
CallManager::setup (const std::string & setting)
{
- CallManager::VideoOptions options;
- get_video_options (options);
-
if (setting.empty () || setting == "stun-server") {
set_stun_server (nat_settings->get_string ("stun-server"));
@@ -1085,23 +1082,38 @@ CallManager::setup (const std::string & setting)
}
if (setting.empty () || setting == "maximum-video-tx-bitrate") {
+ CallManager::VideoOptions options;
+ get_video_options (options);
options.maximum_transmitted_bitrate = video_codecs_settings->get_int ("maximum-video-tx-bitrate");
+ set_video_options (options);
}
if (setting.empty () || setting == "temporal-spatial-tradeoff") {
+ CallManager::VideoOptions options;
+ get_video_options (options);
options.temporal_spatial_tradeoff = video_codecs_settings->get_int ("temporal-spatial-tradeoff");
+ set_video_options (options);
}
if (setting.empty () || setting == "size") {
- options.size = video_devices_settings->get_int ("size");
+ CallManager::VideoOptions options;
+ get_video_options (options);
+ options.size = video_devices_settings->get_enum ("size");
+ set_video_options (options);
}
if (setting.empty () || setting == "max-frame-rate") {
+ CallManager::VideoOptions options;
+ get_video_options (options);
options.maximum_frame_rate = video_codecs_settings->get_int ("max-frame-rate");
+ set_video_options (options);
}
if (setting.empty () || setting == "maximum-video-rx-bitrate") {
+ CallManager::VideoOptions options;
+ get_video_options (options);
options.maximum_received_bitrate = video_codecs_settings->get_int ("maximum-video-rx-bitrate");
+ set_video_options (options);
}
if (setting.empty () || setting == "media-list") {
@@ -1150,6 +1162,4 @@ CallManager::setup (const std::string & setting)
g_strfreev (couple);
}
}
-
- set_video_options (options);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]