summaryrefslogtreecommitdiffstats
path: root/command.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2012-08-03 08:18:40 +0200
committerwm4 <wm4@nowhere>2012-08-03 12:48:02 +0200
commite13c05366557cbe3bf371010f2087a57f072a7eb (patch)
treeb7ea2222ce209ae2e4992f59a26890edf638cf84 /command.c
parent6f564fe82b66d8fbffb794cc93448413e8c8ed60 (diff)
downloadmpv-e13c05366557cbe3bf371010f2087a57f072a7eb.tar.bz2
mpv-e13c05366557cbe3bf371010f2087a57f072a7eb.tar.xz
mplayer: move file loading out of main()
The structure is now as follows: - main(): * basic initializations (e.g. init_libav() and more) * pre-parse command line (verbosity level, config file locations) * load config files (parse_cfgfiles()) * parse command line, add files from the command line to playlist (m_config_parse_mp_command_line()) * call: - handle_help_options(): * check each help-related option * print help if requested * main() exits if help was requested * call function that works down the playlist: - play_files(): * run idle loop (idle_loop()), until there are files in the playlist or an exit command was given (slave mode only) * actually load and play a file: - play_current_file(): * run all the dozens of functions to load the file and initialize playback * run a small loop that does normal playback, until the file is done or a slave command terminates playback (each iteration, run_playloop() is called) * uninitialize playback * determine next entry on the playlist to play * loop * call exit_player_with_rc() (there are many other places which use this function, though)
Diffstat (limited to 'command.c')
0 files changed, 0 insertions, 0 deletions