From 15e6436480275b23f78dda849d4f3de43cbf8391 Mon Sep 17 00:00:00 2001
From: Tristan Matthews <tristan.matthews@savoirfairelinux.com>
Date: Tue, 17 Jul 2012 14:44:06 -0400
Subject: [PATCH] * #13645: gnome: display video codec name in call tree

---
 daemon/src/managerimpl.cpp    | 5 ++++-
 gnome/src/contacts/calltree.c | 6 +++++-
 2 files changed, 9 insertions(+), 2 deletions(-)

diff --git a/daemon/src/managerimpl.cpp b/daemon/src/managerimpl.cpp
index 1ce574d859..ab241ab65e 100644
--- a/daemon/src/managerimpl.cpp
+++ b/daemon/src/managerimpl.cpp
@@ -1842,7 +1842,10 @@ ManagerImpl::getCurrentVideoCodecName(const std::string& ID)
     std::string accountID = getAccountFromCall(ID);
     VoIPLink* link = getAccountLink(accountID);
     Call *call(getCallFromCallID(ID));
-    return link->getCurrentVideoCodecName(call);
+    if (call)
+        return link->getCurrentVideoCodecName(call);
+    else
+        return "";
 }
 
 /**
diff --git a/gnome/src/contacts/calltree.c b/gnome/src/contacts/calltree.c
index e85a6feea7..bc750a6073 100644
--- a/gnome/src/contacts/calltree.c
+++ b/gnome/src/contacts/calltree.c
@@ -30,6 +30,10 @@
  *  as that of the covered work.
  */
 
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
 #include "calllist.h"
 #include "calltree.h"
 #include "str_utils.h"
@@ -345,7 +349,7 @@ calltree_display_call_info(callable_obj_t * call, CallDisplayType display_type,
             break;
         case DISPLAY_TYPE_STATE_CODE :
             if (video_codec && *video_codec)
-                codec = g_strconcat(audio_codec, "/", video_codec, NULL);
+                codec = g_strconcat(audio_codec, " ", video_codec, NULL);
             else
                 codec = g_strdup(audio_codec);
 
-- 
GitLab