| 88 | } |
| 89 | |
| 90 | void OnFFmpegFindButton(State &state) |
| 91 | { |
| 92 | bool showerrs = |
| 93 | #if defined(_DEBUG) |
| 94 | true; |
| 95 | #else |
| 96 | false; |
| 97 | #endif |
| 98 | // Load the libs ('true' means that all errors will be shown) |
| 99 | bool locate = !LoadFFmpeg(showerrs); |
| 100 | |
| 101 | // Libs are fine, don't show "locate" dialog unless user really wants it |
| 102 | if (!locate) { |
| 103 | int response = AudacityMessageBox( |
| 104 | XO( |
| 105 | "Audacity has automatically detected valid FFmpeg libraries.\nDo you still want to locate them manually?"), |
| 106 | XO("Success"), |
| 107 | wxCENTRE | wxYES_NO | wxNO_DEFAULT |wxICON_QUESTION); |
| 108 | if (response == wxYES) { |
| 109 | locate = true; |
| 110 | } |
| 111 | } |
| 112 | |
| 113 | if (locate) { |
| 114 | // Show "Locate FFmpeg" dialog |
| 115 | FindFFmpegLibs(state.parent); |
| 116 | LoadFFmpeg(showerrs); |
| 117 | } |
| 118 | SetFFmpegVersionText(state); |
| 119 | } |
| 120 | |
| 121 | LibraryPrefs::RegisteredControls reg{ wxT("FFmpeg"), AddControls }; |
| 122 |
no test coverage detected