Skip to content
Snippets Groups Projects
Commit 6fe99899 authored by Emmanuel Milou's avatar Emmanuel Milou
Browse files

[#2911] All codecs selected by default

parent 87bc014b
Branches
Tags
No related merge requests found
...@@ -291,9 +291,6 @@ void sflphone_fill_account_list (void) { ...@@ -291,9 +291,6 @@ void sflphone_fill_account_list (void) {
} }
g_free(a->protocol_state_description); g_free(a->protocol_state_description);
a->protocol_state_description = g_hash_table_lookup(details, REGISTRATION_STATE_DESCRIPTION); a->protocol_state_description = g_hash_table_lookup(details, REGISTRATION_STATE_DESCRIPTION);
// Attach a codec list to each account
// account_create_codec_list (&a);
} }
// Set the current account message number // Set the current account message number
...@@ -330,9 +327,6 @@ gboolean sflphone_init() { ...@@ -330,9 +327,6 @@ gboolean sflphone_init() {
// Fetch the ip2ip profile // Fetch the ip2ip profile
sflphone_fill_ip2ip_profile(); sflphone_fill_ip2ip_profile();
// Fetch the audio codecs at startup.
// sflphone_fill_codec_list();
// Fetch the conference list // Fetch the conference list
// sflphone_fill_conference_list(); // sflphone_fill_conference_list();
...@@ -1132,7 +1126,7 @@ void sflphone_fill_codec_list_per_account (account_t **account) { ...@@ -1132,7 +1126,7 @@ void sflphone_fill_codec_list_per_account (account_t **account) {
} }
// Test here if we just added some active codec. // Test here if we just added some active codec.
active = (codeclist->length == 0) ? FALSE : FALSE; active = (codeclist->length == 0) ? TRUE : FALSE;
guint caps_size = codec_list_get_size (), i=0; guint caps_size = codec_list_get_size (), i=0;
...@@ -1152,6 +1146,10 @@ void sflphone_fill_codec_list_per_account (account_t **account) { ...@@ -1152,6 +1146,10 @@ void sflphone_fill_codec_list_per_account (account_t **account) {
} }
(*account)->codecs = codeclist; (*account)->codecs = codeclist;
// call dbus function with array of strings
codec_list_update_to_daemon (*account);
} }
void sflphone_fill_call_list (void) void sflphone_fill_call_list (void)
......
...@@ -396,7 +396,7 @@ ConfigurationManager::getRingtoneList() ...@@ -396,7 +396,7 @@ ConfigurationManager::getRingtoneList()
/** /**
* Send the list of all codecs loaded to the client through DBus. * Send the list of all codecs loaded to the client through DBus.
* Can stay global, as only the active codecs will set per account * Can stay global, as only the active codecs will be set per accounts
*/ */
std::vector<std::string> ConfigurationManager::getCodecList (void) { std::vector<std::string> ConfigurationManager::getCodecList (void) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment