You are here

function _video_render_job_change_status in Video 6

Same name and namespace in other branches
  1. 5 plugins/video_ffmpeg_helper/video_render.php \_video_render_job_change_status()
  2. 6.2 plugins/video_ffmpeg_helper/video_render.php \_video_render_job_change_status()
  3. 6.3 video_scheduler.php \_video_render_job_change_status()

Change the status to $status of the job having nid=$nid and vid=$vid

1 call to _video_render_job_change_status()
video_render_main in plugins/video_ffmpeg_helper/video_render.php

File

plugins/video_ffmpeg_helper/video_render.php, line 244
Renders a video. This script is called concurrently by video_scheduler.php This script has to be launched with "php video_render.php nid vid" If you are not using sites/default/settings.php as your settings file, add an optional parameter…

Code

function _video_render_job_change_status($nid, $vid, $status) {
  $result = db_query('UPDATE {video_rendering} SET status = %d WHERE nid = %d AND vid = %d', $status, $nid, $vid);
}