You are here

public function video_ffmpeg::load_job in Video 6.4

Same name and namespace in other branches
  1. 7 transcoders/video_ffmpeg.inc \video_ffmpeg::load_job()

Overrides transcoder_interface::load_job

2 calls to video_ffmpeg::load_job()
video_ffmpeg::delete_job in transcoders/video_ffmpeg.inc
video_ffmpeg::update_job in transcoders/video_ffmpeg.inc

File

transcoders/video_ffmpeg.inc, line 484

Class

video_ffmpeg

Code

public function load_job($fid) {
  $job = null;
  $result = db_query('SELECT f.*, vf.vid, vf.nid, vf.dimensions, vf.status as video_status FROM {video_files} vf LEFT JOIN {files} f ON vf.fid = f.fid WHERE f.fid=vf.fid AND f.fid = %d', $fid);
  $job = db_fetch_object($result);
  if (!empty($job)) {
    return $job;
  }
  else {
    return FALSE;
  }
}