public function video_localcommand::load_job_queue in Video 6.5
Return at most $num files that need to be transcoded.
Parameters
int $num:
Overrides video_transcoder::load_job_queue
File
- transcoders/
video_localcommand.inc, line 368
Class
Code
public function load_job_queue($num) {
$videos = array();
$result = db_query_range('SELECT f.fid, f.filename, f.filepath, f.filemime, f.filesize, vf.vid, vf.nid, vf.dimensions, vf.status, vf.data 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, $num);
while ($row = db_fetch_object($result)) {
$row->data = unserialize($row->data);
$videos[] = $row;
}
return $videos;
}