ffmpeg_wrapper_can_decode() quietly fails without any messages or log entries.

Comments

iva2k’s picture

ffmpeg_wrapper_can_decode() code invokes dpm() which is not installed as part of any declared dependencies.

function ffmpeg_wrapper_can_decode($uri, $types = array('video', 'audio')) {
  if (is_object($uri)) {
    $uri = $uri->uri;
  }
  dpm(drupal_realpath($uri));

  $ffmpeg = new ffmpeg_wrapper();
  return $ffmpeg->can_decode_file(ffmpeg_wrapper_uri_to_path($uri), $types);
}

perhaps a better code would be

  ...
  if (function_exists('dpm')) { dpm(drupal_realpath($uri)); }
  ...
arthurf’s picture

Status: Active » Closed (fixed)

Removed the debugging code, committed fix. Thanks!