diff --git a/video.field.inc b/video.field.inc index 6460c830d0eed059029d1bcacd1cca71d663f663..d6958da94af1ff304e93c08b738ff6a95cb95392 100644 --- a/video.field.inc +++ b/video.field.inc @@ -120,8 +120,12 @@ function video_field_settings_form($field, $instance, $has_data) { 'no' => 'Don\'t create thumbnail', ); + // When there is no transcoder, the auto option is not available and should not be the default. if (!$hastranscoder) { unset($thumb_options['auto']); + if (!isset($settings['autothumbnail']) || $settings['autothumbnail'] == 'auto') { + $settings['autothumbnail'] = 'no'; + } } $form['autothumbnail'] = array( @@ -129,7 +133,7 @@ function video_field_settings_form($field, $instance, $has_data) { '#title' => t('Video thumbnails'), '#options' => $thumb_options, '#description' => t('If you choose Automatically extract thumbnails from video then please make sure to configure your !settings to make this work properly.', array('!settings' => l(t('transcoder settings'), 'admin/config/media/video/transcoders'))), - '#default_value' => isset($settings['autothumbnail']) ? $settings['autothumbnail'] : 'no', + '#default_value' => isset($settings['autothumbnail']) ? $settings['autothumbnail'] : 'auto', ); $form['default_video_thumbnail'] = array(