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

[#1215] Add samplerate display in the GUI

parent f81b099b
No related branches found
No related tags found
No related merge requests found
......@@ -18,6 +18,7 @@
*/
#include <callable_obj.h>
#include <codeclist.h>
#include <sflphone_const.h>
#include <time.h>
......@@ -81,12 +82,20 @@ gchar* call_get_peer_number (const gchar *format)
gchar* call_get_audio_codec (callable_obj_t *obj)
{
gchar *audio_codec = "";
codec_t *codec;
gchar *format ="";
int samplerate;
if (obj)
{
audio_codec = dbus_get_current_codec_name (obj);
codec = codec_list_get_by_name (audio_codec);
if (codec){
samplerate = codec->sample_rate;
format = g_markup_printf_escaped ("%s/%i", audio_codec, samplerate);
}
return audio_codec;
}
return format;
}
void call_add_error(callable_obj_t * call, gpointer dialog)
......
......@@ -592,7 +592,7 @@ calltree_update_call (calltab_t* tab, callable_obj_t * c, GtkTreeIter *parent)
} else {
DEBUG("Updating state code %d %s", c->_state_code, c->_state_code_description);
if (c->_state_code) {
description = g_markup_printf_escaped("<b>%s</b> <i>%s</i>\n<i>%s (%d)</i>\n<i>%s</i>",
description = g_markup_printf_escaped("<b>%s</b> <i>%s</i>\n<i>%s (%d)</i> <i>%s</i>",
c->_peer_number,
c->_peer_name,
c->_state_code_description,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment