@@ -59,10 +59,10 @@ typedef AVRational Rational;
59
59
// / Register all the codecs and formats which are enabled at configuration time.
60
60
void AvExport preloadCodecsAndFormats ();
61
61
62
- #define LOG_DEBUG ( ... ) { std::stringstream os; os << __VA_ARGS__; Logger::log ( AV_LOG_DEBUG, " debug " , os.str () ); }
63
- #define LOG_INFO ( ... ) { std::stringstream os; os << __VA_ARGS__; Logger::log ( AV_LOG_INFO, " info " , os.str () ); }
64
- #define LOG_WARN ( ... ) { std::stringstream os; os << __VA_ARGS__; Logger::log ( AV_LOG_WARNING, " warning " , os.str () ); }
65
- #define LOG_ERROR ( ... ) { std::stringstream os; os << __VA_ARGS__; Logger::log ( AV_LOG_ERROR, " error " , os.str () ); }
62
+ #define LOG_DEBUG ( ... ) { std::stringstream os; os << __VA_ARGS__; Logger::log ( AV_LOG_DEBUG, os.str () ); }
63
+ #define LOG_INFO ( ... ) { std::stringstream os; os << __VA_ARGS__; Logger::log ( AV_LOG_INFO, os.str () ); }
64
+ #define LOG_WARN ( ... ) { std::stringstream os; os << __VA_ARGS__; Logger::log ( AV_LOG_WARNING, os.str () ); }
65
+ #define LOG_ERROR ( ... ) { std::stringstream os; os << __VA_ARGS__; Logger::log ( AV_LOG_ERROR, os.str () ); }
66
66
67
67
// / Logger class which contains static functions to use ffmpeg/libav log system
68
68
class AvExport Logger
@@ -81,7 +81,7 @@ class AvExport Logger
81
81
* @param msg: the message will be prefixed by '[avTranscoder - <level>]'
82
82
* @param msg: the message will be suffixed by '\n'
83
83
*/
84
- static void log ( int level, const std::string& levelStr, const std::string& msg );
84
+ static void log ( int level, const std::string& msg );
85
85
};
86
86
87
87
}
0 commit comments