MayaFlux 0.2.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ init_ffmpeg()

void MayaFlux::IO::FFmpegDemuxContext::init_ffmpeg ( )
static

Initialise FFmpeg logging level once per process.

Called automatically by the constructor of every stream context.

Definition at line 28 of file FFmpegDemuxContext.cpp.

29{
30 std::lock_guard<std::mutex> lock(s_ffmpeg_init_mutex);
31 if (!s_ffmpeg_initialized.exchange(true)) {
32 av_log_set_level(AV_LOG_WARNING);
33 }
34}
static std::atomic< bool > s_ffmpeg_initialized

References s_ffmpeg_init_mutex, and s_ffmpeg_initialized.

Referenced by MayaFlux::IO::AudioStreamContext::open(), MayaFlux::IO::VideoStreamContext::open(), open(), MayaFlux::IO::VideoStreamContext::open_device(), open_device(), and MayaFlux::IO::SoundFileReader::SoundFileReader().

+ Here is the caller graph for this function: