diff options
author | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2010-07-13 15:34:44 +0800 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2010-07-13 15:34:44 +0800 |
commit | 652acf51f63f430fb5cbbc004739a2d7b551da71 (patch) | |
tree | 2458557965765d21e4430e448775b2ccb3f4698e /src | |
parent | ddecbcd81f0377608de94dcdf7e3a797ae0022fd (diff) | |
download | gsoc2013-empathy-652acf51f63f430fb5cbbc004739a2d7b551da71.tar gsoc2013-empathy-652acf51f63f430fb5cbbc004739a2d7b551da71.tar.gz gsoc2013-empathy-652acf51f63f430fb5cbbc004739a2d7b551da71.tar.bz2 gsoc2013-empathy-652acf51f63f430fb5cbbc004739a2d7b551da71.tar.lz gsoc2013-empathy-652acf51f63f430fb5cbbc004739a2d7b551da71.tar.xz gsoc2013-empathy-652acf51f63f430fb5cbbc004739a2d7b551da71.tar.zst gsoc2013-empathy-652acf51f63f430fb5cbbc004739a2d7b551da71.zip |
display the clock rate of the codec as well
Diffstat (limited to 'src')
-rw-r--r-- | src/empathy-call-window.c | 23 |
1 files changed, 11 insertions, 12 deletions
diff --git a/src/empathy-call-window.c b/src/empathy-call-window.c index 7aa8f6dbf..e607b2ef7 100644 --- a/src/empathy-call-window.c +++ b/src/empathy-call-window.c @@ -1349,6 +1349,7 @@ update_send_codec (EmpathyCallWindow *self, EmpathyCallWindowPriv *priv = GET_PRIV (self); FsCodec *codec; GtkWidget *widget; + gchar *tmp; if (audio) { @@ -1364,7 +1365,9 @@ update_send_codec (EmpathyCallWindow *self, if (codec == NULL) return; - gtk_label_set_text (GTK_LABEL (widget), codec->encoding_name); + tmp = g_strdup_printf ("%s/%u", codec->encoding_name, codec->clock_rate); + gtk_label_set_text (GTK_LABEL (widget), tmp); + g_free (tmp); } static void @@ -1394,7 +1397,7 @@ update_recv_codec (EmpathyCallWindow *self, EmpathyCallWindowPriv *priv = GET_PRIV (self); GList *codecs, *l; GtkWidget *widget; - gchar *str = NULL; + GString *str = NULL; if (audio) { @@ -1415,20 +1418,16 @@ update_recv_codec (EmpathyCallWindow *self, FsCodec *codec = l->data; if (str == NULL) - { - str = g_strdup (codec->encoding_name); - } + str = g_string_new (NULL); else - { - gchar *tmp = str; + g_string_append (str, ", "); - str = g_strdup_printf ("%s, %s", tmp, codec->encoding_name); - g_free (tmp); - } + g_string_append_printf (str, "%s/%u", codec->encoding_name, + codec->clock_rate); } - gtk_label_set_text (GTK_LABEL (widget), str); - g_free (str); + gtk_label_set_text (GTK_LABEL (widget), str->str); + g_string_free (str, TRUE); } static void |