You are here

public function video_ffmpeg::load_job_queue in Video 6.4

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

Overrides transcoder_interface::load_job_queue

File

transcoders/video_ffmpeg.inc, line 494

Class

video_ffmpeg

Code

public function load_job_queue() {
  $total_videos = variable_get('video_ffmpeg_instances', 5);
  $videos = array();
  $result = db_query_range('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 vf.status = %d AND f.status = %d ORDER BY f.timestamp', VIDEO_RENDERING_PENDING, FILE_STATUS_PERMANENT, 0, $total_videos);
  while ($row = db_fetch_object($result)) {
    $videos[] = $row;
  }
  return $videos;
}