Skip to content
Snippets Groups Projects
Commit c36ea2aa authored by Alexandre Savard's avatar Alexandre Savard
Browse files

[#2402] Revert atoi change, fixing codec list doubled entries

parent 2a69cd0a
No related branches found
No related tags found
No related merge requests found
...@@ -1051,7 +1051,7 @@ sflphone_fill_codec_list() ...@@ -1051,7 +1051,7 @@ sflphone_fill_codec_list()
for(pl=codecs; *codecs; codecs++) for(pl=codecs; *codecs; codecs++)
{ {
details = (gchar **)dbus_codec_details(atoi(*codecs)); details = (gchar **)dbus_codec_details(atoi(*codecs));
if(codec_list_get_by_payload((gconstpointer)(*codecs))!=NULL){ if(codec_list_get_by_payload((gconstpointer)atoi(*codecs))!=NULL){
// does nothing - the codec is already in the list, so is active. // does nothing - the codec is already in the list, so is active.
} }
else{ else{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment