[x265] [PATCH] x265Cli: Removed std::string in log
Gopu Govindaswamy
gopu at multicorewareinc.com
Thu Sep 5 06:21:19 CEST 2013
# HG changeset patch
# User Gopu Govindaswamy <gopu at multicorewareinc.com>
# Date 1378354870 -19800
# Node ID 0918ba637238634e880519cf38e8959bf859b076
# Parent 8b79137bdd37d8b30c5882eeb6a1ce5e5f035f0a
x265Cli: Removed std::string in log
diff -r 8b79137bdd37 -r 0918ba637238 source/x265.cpp
--- a/source/x265.cpp Wed Sep 04 22:28:35 2013 -0500
+++ b/source/x265.cpp Thu Sep 05 09:51:10 2013 +0530
@@ -210,7 +210,7 @@
{
if (i_level > cli_log_level)
return;
- std::string s_level;
+ const char *s_level;
switch (i_level)
{
case X265_LOG_ERROR:
@@ -230,7 +230,7 @@
break;
}
- fprintf(stderr, "x265 [%s]: ", s_level.c_str());
+ fprintf(stderr, "x265 [%s]: ", s_level);
va_list arg;
va_start(arg, fmt);
vfprintf(stderr, fmt, arg);
More information about the x265-devel
mailing list