You are here

public function video_localcommand::preset_settings_validate in Video 6.5

Overrides video_transcoder::preset_settings_validate

File

transcoders/video_localcommand.inc, line 641

Class

video_localcommand

Code

public function preset_settings_validate($form, &$form_state) {
  if (!empty($form_state['values']['commands'])) {
    foreach ($form_state['values']['commands'] as $k => $v) {
      if (empty($v)) {
        unset($form_state['values']['commands'][$k]);
      }
    }
    $form_state['values']['commands'] = array_values($form_state['values']['commands']);
  }
  if (!empty($form['useflvtool2'])) {
    $form['useflvtool2'] = TRUE;
  }
  if (!empty($form['useqtfaststart'])) {
    $form['useqtfaststart'] = TRUE;
  }
}