diff options
author | Heshan <heshan@heidisoft.com> | 2011-03-13 00:03:05 +0530 |
---|---|---|
committer | Heshan <heshan@heidisoft.com> | 2011-03-13 00:03:05 +0530 |
commit | f53f62a5ecf8343941e2c74d06b429bb271d7df2 (patch) | |
tree | 788ce5cb10e20aa104b2b9975a0b07304fef63b5 /modules | |
parent | d47e35b2a2c56ecbfc813433d96082394f98136b (diff) | |
download | video-f53f62a5ecf8343941e2c74d06b429bb271d7df2.tar.gz video-f53f62a5ecf8343941e2c74d06b429bb271d7df2.tar.bz2 |
Completed some transcoding stuff and tested the video convert on save.
Diffstat (limited to 'modules')
-rw-r--r-- | modules/video_ui/video.preset.inc | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/modules/video_ui/video.preset.inc b/modules/video_ui/video.preset.inc index 4036c82..981370b 100644 --- a/modules/video_ui/video.preset.inc +++ b/modules/video_ui/video.preset.inc @@ -42,6 +42,16 @@ function video_preset_default_form($form, &$form_state, $preset) { '#collapsible' => TRUE, '#collapsed' => FALSE ); + $video_extension = array(); + foreach (video_video_extensions () as $extension => $theme) { + $video_extension[$extension] = $extension; + } + $form['settings']['video']['video_extension'] = array( + '#type' => 'select', + '#title' => t('Video output extension'), + '#description' => t('Extension of the output video.'), + '#options' => $video_extension + ); $form['settings']['video']['video_codec'] = array( '#type' => 'select', '#title' => t('Video codec'), @@ -523,7 +533,7 @@ function video_preset_delete_confirm_submit($form, &$form_state) { */ function _video_preset_name_validate($element, &$form_state) { $error = video_validate_preset_name($form_state['values']['name']); - if ($error && !isset($form_state['values']['pid']) && !isset ($form_state['values']['default'])) { + if ($error && !isset($form_state['values']['pid']) && !isset($form_state['values']['default'])) { form_set_error('name', $error); } } |