diff --git a/daemon/src/managerimpl.cpp b/daemon/src/managerimpl.cpp
index 1ce574d85963a42f83b4358f12c2f5236f81deac..ab241ab65e669fe66bfc28ff0299fe9607829910 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 e85a6feea73d2b0fce3ac8ea5e279d405c3d22b0..bc750a607357786b153a4670ef51ac59c9ae390a 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);