diff options
Diffstat (limited to 'includes/conversion.inc')
-rw-r--r-- | includes/conversion.inc | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/includes/conversion.inc b/includes/conversion.inc index a5a930f..76e4f34 100644 --- a/includes/conversion.inc +++ b/includes/conversion.inc @@ -50,7 +50,8 @@ class video_conversion { public function process($video) { if (is_object($video) && isset($video->fid)) { $return = $this->render($video); - } else { + } + else { $video_object = $this->load_job($video); $return = $this->render($video_object); } @@ -65,14 +66,14 @@ class video_conversion { // Make sure this video is pending or do nothing. if ($video->video_status == VIDEO_RENDERING_PENDING) { return $this->transcoder->convert_video($video); - } else { + } + else { $status = array( VIDEO_RENDERING_INQUEUE => 'in queue', VIDEO_RENDERING_COMPLETE => 'completed', VIDEO_RENDERING_FAILED => 'failed' ); - watchdog('transcoder', 'Video conversion has been !status. You should add video to the queue. Please check the re-queue to enable the video conversion.', - array('!status' => $status[$video->video_status]), WATCHDOG_WARNING); + watchdog('transcoder', 'Video conversion has been !status. You should add video to the queue. Please check the re-queue to enable the video conversion.', array('!status' => $status[$video->video_status]), WATCHDOG_WARNING); return FALSE; } } |