MCPcopy Create free account
hub / github.com/audacity/audacity / LoadFFmpeg

Function LoadFFmpeg

modules/import-export/mod-ffmpeg/FFmpeg.cpp:40–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

38static BoolSetting FFmpegEnabled{ L"/FFmpeg/Enabled", false };
39
40bool LoadFFmpeg(bool showerror)
41{
42 auto ffmpeg = FFmpegFunctions::Load();
43
44 if (!ffmpeg)
45 {
46 FFmpegEnabled.Write(false);
47 gPrefs->Flush();
48 return false;
49 }
50 else
51 {
52 FFmpegEnabled.Write(true);
53 gPrefs->Flush();
54 return true;
55 }
56}
57
58/** Called during Audacity start-up to try and load the ffmpeg libraries */
59void FFmpegStartup()

Callers 4

OnFFmpegFindButtonFunction · 0.85
CheckFFmpegMethod · 0.85
CheckFileNameMethod · 0.85
FFmpegStartupFunction · 0.85

Calls 3

LoadFunction · 0.85
WriteMethod · 0.45
FlushMethod · 0.45

Tested by

no test coverage detected