function _video_ffmpeg_helper_check_exe_path in Video 6.2
Same name and namespace in other branches
- 5 plugins/video_ffmpeg_helper/video_ffmpeg_helper.module \_video_ffmpeg_helper_check_exe_path()
- 6 plugins/video_ffmpeg_helper/video_ffmpeg_helper.module \_video_ffmpeg_helper_check_exe_path()
2 calls to _video_ffmpeg_helper_check_exe_path()
- video_ffmpeg_helper_admin_settings_validate in plugins/
video_ffmpeg_helper/ video_ffmpeg_helper.module - Validation for settings form
- video_image_admin_settings_validate in plugins/
video_image/ video_image.module
File
- plugins/
video_ffmpeg_helper/ video_ffmpeg_helper.module, line 498 - Provide some api for use ffmpeg. Simplify video nodes creation.
Code
function _video_ffmpeg_helper_check_exe_path($path = NULL) {
if (!$path) {
$path = variable_get('video_ffmpeg_helper_ffmpeg_path', '/usr/bin/ffmpeg');
}
if (function_exists('is_executable')) {
$test = 'is_executable';
}
else {
$test = 'file_exists';
}
return $test($path);
}