Skip to content
Snippets Groups Projects
Commit 15e64364 authored by Tristan Matthews's avatar Tristan Matthews
Browse files

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

parent 3109b201
Branches
Tags
No related merge requests found
...@@ -1842,7 +1842,10 @@ ManagerImpl::getCurrentVideoCodecName(const std::string& ID) ...@@ -1842,7 +1842,10 @@ ManagerImpl::getCurrentVideoCodecName(const std::string& ID)
std::string accountID = getAccountFromCall(ID); std::string accountID = getAccountFromCall(ID);
VoIPLink* link = getAccountLink(accountID); VoIPLink* link = getAccountLink(accountID);
Call *call(getCallFromCallID(ID)); Call *call(getCallFromCallID(ID));
if (call)
return link->getCurrentVideoCodecName(call); return link->getCurrentVideoCodecName(call);
else
return "";
} }
/** /**
......
...@@ -30,6 +30,10 @@ ...@@ -30,6 +30,10 @@
* as that of the covered work. * as that of the covered work.
*/ */
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include "calllist.h" #include "calllist.h"
#include "calltree.h" #include "calltree.h"
#include "str_utils.h" #include "str_utils.h"
...@@ -345,7 +349,7 @@ calltree_display_call_info(callable_obj_t * call, CallDisplayType display_type, ...@@ -345,7 +349,7 @@ calltree_display_call_info(callable_obj_t * call, CallDisplayType display_type,
break; break;
case DISPLAY_TYPE_STATE_CODE : case DISPLAY_TYPE_STATE_CODE :
if (video_codec && *video_codec) if (video_codec && *video_codec)
codec = g_strconcat(audio_codec, "/", video_codec, NULL); codec = g_strconcat(audio_codec, " ", video_codec, NULL);
else else
codec = g_strdup(audio_codec); codec = g_strdup(audio_codec);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment