Commit 15e64364 authored by Tristan Matthews's avatar Tristan Matthews
Browse files

* #13645: gnome: display video codec name in call tree

parent 3109b201
......@@ -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 "";
}
/**
......
......@@ -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);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment