aboutsummaryrefslogtreecommitdiffhomepage
Commit message (Collapse)AuthorAge
...
* msg: handle vsnprintf errorsGravatar wm42013-12-20
| | | | | | | I don't know under which circumstances this can error (other than a broken format string). It seems it won't return an error code on I/O errors, so maybe broken format strings are the only case. Either way, don't continue if an error is returned.
* msg: use a global lock to synchronize printingGravatar wm42013-12-20
| | | | | | | | | | | | | | We have certain race conditions coming from doing multiple fprintf() calls (setting up colors etc.). I'm not sure whether it would be worth changing to code such that we do only one fprintf() call (and assume this synchronizes access), but considering it would be hard to do (Windows compatibility, ...), and that stdio uses per FILE locks anyway, this is simpler and probably not less efficient. Also, there's no problem handling the weird statusline special case this way. Note that mp_msg_* calls which are silent won't acquire the lock, and acquiring the lock happens on actual output only (which is slow and serialized anyway).
* msg: change --msglevel, reduce legacy glueGravatar wm42013-12-20
| | | | | | | | | | | | Basically, reimplement --msglevel. Instead of making the new msg code use the legacy code, make the legacy code use the reimplemented functionality. The handling of the deprecated --identify switch changes. It temporarily stops working; this will be fixed in later commits. The actual sub-options syntax (like --msglevel-vo=...) goes away, but I bet nobody knew about this or used this anyway.
* msg: cosmetic changesGravatar wm42013-12-20
| | | | | In particular, condense the legacy MSGT_ defines and move them to the end of the file.
* msg: change hack to silence command line pre-parse error messagesGravatar wm42013-12-20
| | | | mp_msg_levels[] will go away.
* terminal: remove separate formatting for --msgmoduleGravatar wm42013-12-20
| | | | Instead, --msgmodule uses the same formatting as -v.
* terminal: abstract terminal color handlingGravatar wm42013-12-20
| | | | | | | | Instead of making msg.c an ifdef hell for unix vs. windows code, move the code to separate functions defined in terminal-unix.c/terminal- win.c. Drop the code that selects random colors for --msgmodule prefixes.
* w32_common: support file drag and dropGravatar Martin Herkt2013-12-20
|
* input: make parse_cmd_strv take const argsGravatar Martin Herkt2013-12-20
|
* osc: use mp.send_commandvGravatar wm42013-12-20
| | | | | See previous commit. Drop no-osd prefixes, as this is the default for send_commandv anyway. send_command should probably be renamed later.
* input, lua: add functions to take pre-split input commandsGravatar wm42013-12-20
| | | | | | | | | | | | | | So you can pass a command as list of strings (each item is an argument), instead of having to worry about escaping and such. These functions also take an argument for the default command flags. In particular, this allows setting saner defaults for commands sent by program code. Expose this to Lua as mp.send_commandv command (suggestions for a better name welcome). The Lua version doesn't allow setting the default command flags, but it can still use command prefixes. The default flags are different from input.conf, and disable OSD and property expansion.
* terminal: move SIGTTOU signal handler setup codeGravatar wm42013-12-19
| | | | | | This comes with a real change in behavior: now the signal handler is set only when the terminal input code is active (e.g. not with --no-consolecontrols), but this should be ok.
* Rename getch2....c/h to terminal....c/hGravatar wm42013-12-19
| | | | | "getch2" really tells nothing about what the heck this code does. It'd be even worse when moving the rest of terminal handling code there.
* crosscompile-mingw.txt: fix instructionsGravatar wm42013-12-19
| | | | | The instructions hardcode some paths, so it sure would be better if the listed commands actually use this path.
* player: replace some overlooked mp_msgsGravatar wm42013-12-19
| | | | | There are still some using IDENTIFY, and some without context in configfiles.c.
* options: use M_OPT_EXIT with -VGravatar wm42013-12-19
| | | | | Otherwise, output will actually be muted during pre-pase stage, and it will exit before running it again with output enabled.
* ta: fix compilation with NDEBUGGravatar wm42013-12-19
|
* m_option.h: actually remove config.h includeGravatar wm42013-12-19
| | | | This was supposed to be done in commit 80b34ebe.
* stream: remove stale MAX_STREAM_PROTOCOLS defineGravatar wm42013-12-19
|
* command: remove radio commandsGravatar wm42013-12-19
| | | | | | | Remove these because I'm too lazy to convert them to proper STREAM_CTRLs. Considering that probably nobody uses radio://, caring about this is a complete waste of time. I will add these commands back if someone asks for them, but I don't expect this to happen.
* w32_common: fix mouse clicksGravatar Martin Herkt2013-12-19
| | | | | | | | | | | | | | Apparently this has been broken for a year or so. The were three reasons for the breakage here: 1. The window dragging hack prevented any DOWN event from passing through since it always returned before we even got the button. 2. The window style had CS_DBLCLKS in its flags, so we did not get any DOWN events when the OS had detected a double click (instead expecting us to handle a DBL event). 3. We never sent any mouse buttons when mouse movement handling was disabled.
* ao_wasapi: fix includesGravatar wm42013-12-18
| | | | Broken due to recent header renaming. Untested.
* vf_lavfi: don't access AVFilterPad directlyGravatar wm42013-12-18
| | | | Direct access is deprecated.
* ad_lavc: work around deprecation warningGravatar wm42013-12-18
| | | | | | | | | | request_channels has been deprecated for years (request_channel_layout is the replacement), but it appears it's still needed despite the deprecation at least on older libavcodec versions. So still set request_channels, but to it with the avoption API, which hides the deprecation warning. This should also prevent mpv getting trashed when libavcodec happens to bump its major version.
* m_option: don't include config.h in headerGravatar wm42013-12-18
| | | | Requires a small workaround.
* Reduce recursive config.h inclusions in headersGravatar wm42013-12-18
| | | | | | In my opinion, config.h inclusions should be kept to a minimum. MPlayer code really liked including config.h everywhere, though, even in often used header files. Try to reduce this.
* stream: move O_BINARY dummy definitionGravatar wm42013-12-18
|
* Remove the _ macroGravatar wm42013-12-18
| | | | | This was a gettext-style macro to mark strings that should be translated.
* ildetect: add ILDETECT_FORCE_RUN (if interlacing could not be decided, ↵Gravatar Rudolf Polzer2013-12-18
| | | | assume yadif).
* command: better check whether file duration is availableGravatar wm42013-12-17
|
* old-makefile: fix mpvcore references and the DIRS variableGravatar wm42013-12-17
|
* Fix OSX build; remove all remaining mpvcore referencesGravatar 11rcombs2013-12-17
|
* Split mpvcore/ into common/, misc/, bstr/Gravatar wm42013-12-17
|
* Merge mp_talloc.h into ta/ta_talloc.hGravatar wm42013-12-17
|
* Move options/config related files from mpvcore/ to options/Gravatar wm42013-12-17
| | | | | | | | | Since m_option.h and options.h are extremely often included, a lot of files have to be changed. Moving path.c/h to options/ is a bit questionable, but since this is mainly about access to config files (which are also handled in options/), it's probably ok.
* Move libquvi stuff to stream/resolve/Gravatar wm42013-12-17
|
* Move mpvcore/input/ to input/Gravatar wm42013-12-17
|
* Rename mp_lua.c/h to lua.c/hGravatar wm42013-12-17
|
* Rename mp_core.h to core.hGravatar wm42013-12-17
| | | | Get rid of the mp_ prefix.
* Move mpvcore/player/ to player/Gravatar wm42013-12-17
|
* Replace mp_tmsg, mp_dbg -> mp_msg, remove mp_gtext(), remove set_osd_tmsgGravatar wm42013-12-16
| | | | | | | | | The tmsg stuff was for the internal gettext() based translation system, which nobody ever attempted to use and thus was removed. mp_gtext() and set_osd_tmsg() were also for this. mp_dbg was once enabled in debug mode only, but since we have log level for enabling debug messages, it seems utterly useless.
* input: remove LIRCCD supportGravatar wm42013-12-16
| | | | | | | This removes support for the "LIRC Client Daemon", which is separate from LIRC, and hasn't been maintained for 10 years. See github issue #413.
* command: mess with previous commitGravatar wm42013-12-16
| | | | | | Nothing actually used the returned length. Since the remaining time can easily become 0 or negative (e.g. incorrectly estimated file duration), the time_remaining function still needs 2 return values, though.
* command: scale osd’s time remaining by the current speedGravatar Vivek Jain2013-12-16
| | | | Signed-off-by: wm4 <wm4@nowhere>
* manpage: fix --vf=expand aspect ratio exampleGravatar Alessandro Ghedini2013-12-16
|
* input: move multi-command parsing somewhere elseGravatar wm42013-12-16
| | | | | I'm planning to add a mode to pass commands as a pre-split list of strings, and this will probably be useful to reach this goal.
* input: adjust code to make quoted/not quoted cases more unifiedGravatar wm42013-12-16
|
* input: better error reporting for missing commandsGravatar wm42013-12-16
| | | | Don't print an empty string if the command is missing.
* input: move some command flags into a bitfieldGravatar wm42013-12-16
|
* input: remove weird syntax for skipping optional argumentsGravatar wm42013-12-16
|