From 5c0cf3075cdd3643ea0fb28bf41204d053836f22 Mon Sep 17 00:00:00 2001 From: Heshan Date: Sun, 3 Jul 2011 10:23:09 +0530 Subject: #866590 by studiotaffi Always saves 'Enable nice' as true. --- transcoders/video_phpvideotoolkit.inc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/transcoders/video_phpvideotoolkit.inc b/transcoders/video_phpvideotoolkit.inc index 641e61d..b4bc96e 100644 --- a/transcoders/video_phpvideotoolkit.inc +++ b/transcoders/video_phpvideotoolkit.inc @@ -27,7 +27,7 @@ class video_phpvideotoolkit implements transcoder_interface { //@todo: move this to the actual widget and save in video_files table. $this->params['size'] = variable_get('video_ffmpeg_width', $this->video_width) . 'x' . variable_get('video_ffmpeg_height', $this->video_height); $this->params['ffmpeg'] = variable_get('video_ffmpeg_path', $this->ffmpeg); - $this->nice = variable_get('video_ffmpeg_nice_enable', FALSE) ? 'nice -n 19 ' : ''; + $this->nice = variable_get('video_phpvideotoolkit_nice_enable', FALSE) ? 'nice -n 19 ' : ''; $this->params['videoext'] = variable_get('video_ffmpeg_ext', $this->video_ext); $this->params['enable_faststart'] = variable_get('video_ffmpeg_enable_faststart', 0); $this->params['faststart_cmd'] = variable_get('video_ffmpeg_faststart_cmd', '/usr/bin/qt-faststart'); @@ -420,10 +420,10 @@ class video_phpvideotoolkit implements transcoder_interface { '#type' => 'markup', '#markup' => '
', ); - $form['phpvideotoolkit']['video_ffmpeg_nice_enable'] = array( + $form['phpvideotoolkit']['video_phpvideotoolkit_nice_enable'] = array( '#type' => 'checkbox', '#title' => t('Enable the use of nice when calling the command.'), - '#default_value' => variable_get('video_ffmpeg_nice_enable', TRUE), + '#default_value' => variable_get('video_phpvideotoolkit_nice_enable', TRUE), '#description' => t('The nice command Invokes a command with an altered scheduling priority. This option may not be available on windows machines, so disable it.') ); // FFMPEG -- cgit v1.2.3