From bc20f2cb00234ce436be2f939cb62dbbde5e8dd2 Mon Sep 17 00:00:00 2001 From: wm4 Date: Fri, 8 Mar 2013 02:08:02 +0100 Subject: core: remove a number of global variables Move them into per-instance structs. This should get rid of all global variables in mplayer.c (not counting those referenced by cfg-mplayer.h). In core/input/ar.c, just remove checking the slave_mode variable. I'm not sure what this code was supposed to achieve, but slave mode is broken, slave mode is actually infeasible on OSX (ar.c is completely OSX specific), and the correct way of doing this would be to disable this input device per command line switch. --- core/defaultopts.c | 1 + 1 file changed, 1 insertion(+) (limited to 'core/defaultopts.c') diff --git a/core/defaultopts.c b/core/defaultopts.c index ca01ba1df3..9f544d6d55 100644 --- a/core/defaultopts.c +++ b/core/defaultopts.c @@ -57,6 +57,7 @@ void set_default_mplayer_options(struct MPOpts *opts) .term_osd = 2, .consolecontrols = 1, .doubleclick_time = 300, + .play_frames = -1, .keep_open = 0, .audio_id = -1, .video_id = -1, -- cgit v1.2.3