options: fix -ar default back to enabled if available
[mplayer.git] / defaultopts.c
blob10505f4ea5428b6ceea6645c949444658ffb24be
1 #include <stddef.h>
3 #include "config.h"
4 #include "defaultopts.h"
5 #include "options.h"
7 void set_default_mplayer_options(struct MPOpts *opts)
9 *opts = (const struct MPOpts){
10 .audio_driver_list = NULL,
11 .video_driver_list = NULL,
12 .fixed_vo = 0,
13 .monitor_pixel_aspect = 1.0,
14 .vo_panscanrange = 1.0,
15 .vo_gamma_gamma = 1000,
16 .vo_gamma_brightness = 1000,
17 .vo_gamma_contrast = 1000,
18 .vo_gamma_saturation = 1000,
19 .vo_gamma_hue = 1000,
20 .loop_times = -1,
21 .user_correct_pts = -1,
22 .key_fifo_size = 7,
23 .doubleclick_time = 300,
24 .audio_id = -1,
25 .video_id = -1,
26 .sub_id = -2,
27 .playback_speed = 1.,
28 .movie_aspect = -1.,
29 .flip = -1,
30 .vd_use_slices = 1,
31 .lavc_param = (struct lavc_param){
32 .workaround_bugs = 1, // autodetect
33 .error_resilience = 2,
34 .error_concealment = 3,
35 .threads = 1,
37 .input = (struct input_conf){
38 .config_file = "input.conf",
39 .ar_delay = 100,
40 .ar_rate = 8,
41 .use_joystick = 1,
42 .use_lirc = 1,
43 .use_lircc = 1,
44 #ifdef CONFIG_APPLE_REMOTE
45 .use_ar = 1,
46 #else
47 .use_ar = 0,
48 #endif
53 void set_default_mencoder_options(struct MPOpts *opts)
55 set_default_mplayer_options(opts);
56 opts->user_correct_pts = 0;