Skip to content
Snippets Groups Projects
Commit b236ae39 authored by Ariel Barreiro's avatar Ariel Barreiro Committed by Sven Decabooter
Browse files

Issue #3347969 by hanoii: Fatal error if ffmpeg is enabled but binary not found

parent cb8828ee
No related branches found
No related tags found
2 merge requests!5Issue #3457755 by svendecabooter: Add Gitlab CI support,!1Issue #3347969: Fatal error if ffmpeg is enabled but binary not found
...@@ -50,7 +50,12 @@ class Html5 extends ProviderPluginBase { ...@@ -50,7 +50,12 @@ class Html5 extends ProviderPluginBase {
$this->phpFFMpeg = FALSE; $this->phpFFMpeg = FALSE;
if ($module_handler->moduleExists('php_ffmpeg')) { if ($module_handler->moduleExists('php_ffmpeg')) {
$this->phpFFMpeg = \Drupal::service('php_ffmpeg'); try {
$this->phpFFMpeg = \Drupal::service('php_ffmpeg');
} catch (\Exception $e ) {
// do nothing, will remain as false
}
} }
$this->fileSystem = $file_system; $this->fileSystem = $file_system;
$this->config = $config_factory->get('video_embed_html5.config'); $this->config = $config_factory->get('video_embed_html5.config');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment