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

◆ close()

void MayaFlux::IO::FFmpegDemuxContext::close ( )

Close the format context and release all demux resources.

Safe to call multiple times.

Definition at line 55 of file FFmpegDemuxContext.cpp.

56{
57 if (format_context) {
58 avformat_close_input(&format_context);
59 format_context = nullptr;
60 }
61 m_last_error.clear();
62}
AVFormatContext * format_context
Owned; freed in destructor.

References format_context, and m_last_error.

Referenced by open(), open_device(), and ~FFmpegDemuxContext().

+ Here is the caller graph for this function: