summaryrefslogtreecommitdiffstats
path: root/defaultopts.c
Commit message (Collapse)AuthorAgeFilesLines
* vd_ffmpeg: set thread count to number of cores on machine by defaultUoti Urpala2010-12-201-1/+0
| | | | | | | | | | | Make "-lavdopts threads=0" mean an autodetected number of threads, and make that the default value of the option. Also increase the upper limit of the option from 8 to 16. Add new file osdep/numcores.c which tries to determine the number of cores available on the machine. numcores.c is based (heavily modified) on public domain numcpus.c by Philip Willoughby <pgw99@doc.ic.ac.uk>, downloaded from http://csgsoft.doc.ic.ac.uk/numcpus/
* core: ordered chapters: add heuristic for merging inaccurate chaptersUoti Urpala2010-11-261-0/+1
| | | | | | | | | | Some Matroska files have inaccurate ordered chapter endpoints, and so parts where one chapter should end and the next begin at the same timestamp were not merged. This resulted in an unnecessary seek over a minimal distance. Add a heuristic to merge parts with a minimal gap or overlap between them. Based on patch by Hector Martin <hector@marcansoft.com>.
* options: more mplayer.c options moved to option structClément Bœsch2010-11-141-0/+3
| | | | | | Following options were moved: autoq, benchmark, [no]term-osd, term-osd-esc, playing-msg, [no]idle, [no]consolecontrols, list-properties.
* core: do initial A-V sync by modifying audio streamUoti Urpala2010-11-131-0/+1
| | | | | | | Add code to enforce matching pts with video when (re)starting the audio stream, by either cutting away the first samples or inserting silence at the beginning. New option -noinitial-audio-sync can be used to disable this and return to old behavior.
* audio: add -gapless-audio optionUoti Urpala2010-11-121-0/+1
| | | | | | | | | If the option is enabled and all audio has been buffered to the AO, then the player will move to the next file without waiting for the buffered audio to drain, while leaving the AO initialized. If the playback of the next file starts quickly enough (before the AO buffer empties) then it should continue writing audio to the same AO with no gap in between.
* options: move -cache-min and cache-seek-min to option structClément Bœsch2010-11-111-0/+2
|
* options: move some demux options to option structClément Bœsch2010-11-111-0/+1
| | | | | Following options were moved: audiofile, audiofile-cache, subfile, demuxer, audio-demuxer, sub-demuxer, [no]extbased.
* options: move -dumpfile to option structUoti Urpala2010-11-021-0/+1
|
* options: move audio_output_channels, audio_output_format to structUoti Urpala2010-11-021-0/+2
|
* options: fix -a52drc default value (should be 1)Uoti Urpala2010-06-031-0/+1
| | | | | | | Commit 3f076c0fb3 ("options: move -a52drc to option struct") from yesterday left out setting the default value of the option, effectively changing the default from 1 to 0. Add the missing part to change it back to 1.
* options: move -chapter values to option structUoti Urpala2010-04-251-0/+1
| | | | | | | | | | | -chapter can optionally take a range with a start and an end. Add a new option type which supports such values and use that instead of a custom per-option function. This commit also fixes a build configuration bug: before the availability of the -chapter option depended on DVD functionality being enabled in the binary, even though the option works with other sources too.
* Support for multiple editions in MatroskaDaniel Dawson2009-12-041-0/+1
| | | | | | | | Add code to intelligently choose an appropriate Matroska edition when there are several. Will choose, in descending order of preference: the edition chosen by the user through the option "-edition <edition id>" if it exists, the first edition with EditionFlagDefault set to 1 if there is one, or the first edition.
* Merge svn changes up to r29752Uoti Urpala2009-10-061-1/+1
| | | | | | | | | As part of merging subtitle-in-terminal changes make update_subtitles() only clear existing subtitles if called with the reset argument, and not try to set new ones. Later calls should set the needed new subtitles, and this change avoids some problems with trying to set subtitles when mp_property_sub() in command.c gets called from initialization code before full initialization.
* defaultopts.c: Minor simplificationUoti Urpala2009-04-091-2/+2
| | | | | This happens to avoid a compiler bug in the current GCC development branch.
* Merge branch 'ordered_chapters'Uoti Urpala2009-04-081-1/+4
|\
| * Add option -noordered-chapters.Uoti Urpala2009-04-081-0/+1
| |
| * Make -fixed-vo the defaultUoti Urpala2009-04-021-1/+1
| | | | | | | | | | | | | | | | Lack of -fixed-vo causes the output window to be recreated not only when changing files but also when switching the video stream, and that happens when moving from one ordered chapter source to another. Having the window disappear and reappear (likely at another location if it was ever moved) is just too annoying.
| * options: Move osd_level and osd_duration to options structUoti Urpala2009-03-311-0/+2
| |
* | Merge svn changes up to r29117Uoti Urpala2009-04-011-1/+1
|/
* Merge svn changes up to r28951Uoti Urpala2009-03-141-0/+1
|
* options: fix -ar default back to enabled if availableUoti Urpala2009-02-161-1/+1
| | | | | Due to a missed config variable rename -noar was always the default. Make it default to enabled if available as it was before.
* Merge svn changes up to r26979Uoti Urpala2008-06-041-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | Most of the conflicts are trivial. Conflicts: Makefile cfg-mplayer.h input/input.c libmenu/vf_menu.c libmpcodecs/dec_video.c libmpcodecs/vf_expand.c libmpcodecs/vf_vo.c libmpdemux/demux_mkv.c libmpdemux/demuxer.c libmpdemux/demuxer.h libvo/vo_directfb2.c libvo/vo_gl.c libvo/vo_winvidix.c libvo/vo_xv.c libvo/vo_xvidix.c libvo/vo_xvmc.c libvo/x11_common.c mplayer.c osdep/timer-linux.c stream/cache2.c
* Move aspect.c options to option structUoti Urpala2008-05-011-0/+2
|
* Move input options to option structUoti Urpala2008-04-301-0/+9
|
* Move key_fifo_size & doubleclick_time to options structUoti Urpala2008-04-291-0/+2
|
* Move vo_gamma_* to options structUoti Urpala2008-04-261-0/+5
|
* Move vd_use_slices to options structUoti Urpala2008-04-251-0/+1
|
* Move movie_aspect to options structUoti Urpala2008-04-251-0/+1
|
* Move flip and softzoom to options structUoti Urpala2008-04-251-0/+1
|
* Move -lavdopts to options structUoti Urpala2008-04-251-0/+6
|
* Move dvdsub_id to options structUoti Urpala2008-04-231-0/+1
| | | | | | | Name the field "sub_id" as it's not specific to DVD subs. Remove some other unused extern declarations together with dvdsub_id from demux_mkv.c and demux_lavf.c.
* Move audio_id and video_id to options structUoti Urpala2008-04-231-0/+2
|
* Move playback_speed to options structUoti Urpala2008-04-231-0/+1
|
* Move loop_times to option structUoti Urpala2008-04-231-0/+1
|
* Move correct_pts to options structUoti Urpala2008-04-231-0/+7
|
* Move options "vo" and "ao" to common structUoti Urpala2008-04-231-0/+3
|
* Start of new option systemUoti Urpala2008-04-231-0/+9
First part of option restructuring. The aim is to move option values from a huge number of separate globals to a single non-global struct. This part adds some support for parsing option values into such struct instances, and moves one example option (fixed-vo) to the struct.