Skip to content

Commit a64c506

Browse files
committed
Mirror ffmpeg log setup
1 parent b68ef94 commit a64c506

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/stream/FFmpegStream.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,9 @@ bool FFmpegStream::Open(const std::string& streamUrl, const std::string& mimeTyp
184184
FFmpegLog::SetEnabled(true);
185185
av_dump_format(m_pFormatContext, 0, CURL::GetRedacted(streamUrl).c_str(), 0);
186186
}
187+
FFmpegLog::SetLogLevel(AV_LOG_INFO);
187188
FFmpegLog::SetEnabled(kodi::addon::GetSettingBoolean("allowFFmpegLogging"));
189+
av_log_set_callback(ff_avutil_log);
188190

189191
return m_opened;
190192
}

0 commit comments

Comments
 (0)