diff options
| author | Thomas Reufer <thomas@reufer.ch> | 2014-07-01 07:54:34 +0200 |
|---|---|---|
| committer | Thomas Reufer <thomas@reufer.ch> | 2014-07-01 07:54:34 +0200 |
| commit | 74e8d735762db963c1c31d427eb6ec80f8696b1c (patch) | |
| tree | 272182032249d2c0c8f5d871bce09dae23cec422 | |
| parent | 94b323fdb19a7f5b57a67aa3f814350f4c78ff90 (diff) | |
| download | vdr-plugin-rpihddevice-74e8d735762db963c1c31d427eb6ec80f8696b1c.tar.gz vdr-plugin-rpihddevice-74e8d735762db963c1c31d427eb6ec80f8696b1c.tar.bz2 | |
replace av_log_format_line by vsnprintf to be compatible with libav
| -rw-r--r-- | audio.c | 10 | ||||
| -rw-r--r-- | audio.h | 1 |
2 files changed, 4 insertions, 7 deletions
@@ -1035,20 +1035,18 @@ void cRpiAudioDecoder::SetCodec(cAudioCodec::eCodec codec, unsigned int &channel } } -int cRpiAudioDecoder::s_printPrefix = 1; - void cRpiAudioDecoder::Log(void* ptr, int level, const char* fmt, va_list vl) { if (level == AV_LOG_QUIET) return; char line[128]; - av_log_format_line(ptr, level, fmt, vl, line, sizeof(line), &s_printPrefix); + vsnprintf(line, sizeof(line), fmt, vl); if (level <= AV_LOG_ERROR) - ELOG("%s", line); + ELOG("[libav] %s", line); else if (level <= AV_LOG_INFO) - ILOG("%s", line); + ILOG("[libav] %s", line); else if (level <= AV_LOG_VERBOSE) - DLOG("%s", line); + DLOG("[libav] %s", line); } @@ -41,7 +41,6 @@ protected: void HandleAudioSetupChanged(); static void Log(void* ptr, int level, const char* fmt, va_list vl); - static int s_printPrefix; struct Codec { |
