You are here

function _video_ffmpeg_helper_check_exe_path in Video 6

Same name and namespace in other branches
  1. 5 plugins/video_ffmpeg_helper/video_ffmpeg_helper.module \_video_ffmpeg_helper_check_exe_path()
  2. 6.2 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 521
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);
}