MCPcopy Create free account
hub / github.com/MediaArea/MediaInfo / Advanced_EnableFfmpegClick

Method Advanced_EnableFfmpegClick

Source/GUI/VCL/GUI_Preferences.cpp:459–487  ·  view source on GitHub ↗

---------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

457
458//---------------------------------------------------------------------------
459void __fastcall TPreferencesF::Advanced_EnableFfmpegClick(TObject *Sender)
460{
461 if (Advanced_EnableFfmpeg->Checked)
462 {
463 #ifndef MEDIAINFOGUI_PLUGIN_NO
464 if (Prefs->Config(__T("EnableFfmpeg"), 1) != __T("1"))
465 {
466 Ztring InstallFolder = Application->ExeName.c_str();
467 InstallFolder = InstallFolder.substr(0, InstallFolder.rfind(__T("\\")) + 1);
468
469 if (!File::Exists(InstallFolder+__T("\\Plugin\\FFmpeg\\version.txt"))) //Try to install plugin
470 {
471 TPluginF* P = new TPluginF(this, PLUGIN_FFMPEG);
472 if (P->Configure())
473 P->ShowModal();
474 delete P;
475
476 if (!File::Exists(InstallFolder+__T("\\Plugin\\FFmpeg\\version.txt")))
477 MessageBox(NULL, __T("An error occured, please download and install the plugin manually from the MediaInfo download page."), __T("Error"), MB_OK);
478 }
479 }
480 #endif
481 Prefs->Config(__T("EnableFfmpeg"), 1)=__T("1");
482 }
483 else
484 {
485 Prefs->Config(__T("EnableFfmpeg"), 1)=__T("0");
486 }
487}
488
489//---------------------------------------------------------------------------
490void __fastcall TPreferencesF::Advanced_LegacyStreamDisplayClick(TObject *Sender)

Callers

nothing calls this directly

Calls 1

ConfigureMethod · 0.80

Tested by

no test coverage detected