aboutsummaryrefslogtreecommitdiffhomepage
Commit message (Collapse)AuthorAge
* 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
|
* manpage: undocument syntax for skipping optional arguments in input commandsGravatar wm42013-12-16
| | | | | | | | "-" could skip optional arguments. I think this was a pretty bad idea, because it introduced a weird special case. I'll remove the special syntax, but keep compatibility for the "seek" and "screenshot" commands.
* input: avoid using wakeup pipe if it's not neededGravatar wm42013-12-16
| | | | | | | | | | | | | | If input is not waiting for select(), writing to the wakeup pipe is wasteful, and, if there are many wakeups, might even block the wakeup threads if the pipe gets full. However, if it's waiting for select(), the wakup pipe must be used to unblock the waiting thread. Actually there's a small race condition: we might determine that the main thread is in select(), and write to the wakeup pipe (whether we do this while unlocked or locked doesn't really matter). Then, the main thread might leave select() before reading from the wakup pipe. This should be harmless, because at worst more wakeups than needed happen, but never fewer.
* mp_msg: define a bunch of convenience macrosGravatar wm42013-12-16
| | | | | | | | | In order to use bare mp_log contexts, I find myself creating dummy structs (with a single "log" field) to use the MP_ERR() etc. macros, which hardcode the idiom that a context struct has a log field. On the other hand, just using mp_msg_log() is too much typing (and I want to rename it to mp_msg() when the transition is done), so it seems nice to have message printing macros that use mp_log directly.
* input: don't quit with exit status 1 when receiving SIGTERMGravatar wm42013-12-15
| | | | | Instead, do whatever the normal "quit" command does, which currently is returning a status of 0.
* player: don't temporarily disable terminal handling when reloading filesGravatar wm42013-12-15
| | | | | | | | | | There's no reason why we should do this. For some reason, the existing code reset terminal handling to default after unloading a file, just to initialize it again when loading a new file. Might be related to github issue #412, although I don't think it helps, since the default SIGTERM handler _should_ kill the mpv process. (It's still a nice simplification, though.)
* osd_libass: update styles when OSD changes PlayResGravatar wm42013-12-15
| | | | | | | The OSD style settings depend on the PlayRes, simply because all style values are implicitly scaled by the PlayResY in libass. Also, the OSC changes the PlayResY in certain situations, so something could go wrong. But not sure if this actually matters in practice.
* osd: use separate ASS_Renderer for each OSD objectGravatar wm42013-12-15
| | | | | | | | This simplifies things, although it is slightly less efficient (probably uses a bit more memory). This also happens to fix that the OSC dropped the libass cache on every frame.
* player: don't store subtitle renderer in osd_stateGravatar wm42013-12-15
| | | | | | | | This doesn't have much value. It can't be accessed by anything else than the actual subtitle renderer (sd_ass.c). sd_ass.c could create the renderer itself, except that we apparently want to save memory (and some font loading time) when using ordered chapters or multiple subtitle tracks.
* dvdnav: fix incorrect clipping of highlightsGravatar wm42013-12-15
|
* demux_mkv: don't seek outside of the file when finding segmentsGravatar wm42013-12-14
| | | | | | | | The end of the current segment will be the end of the file if there is no next segment. Normally, this didn't matter much, since UNIX files allow seeking past the end of the file. But when opening files from HTTP, this would print confusing error messages. So explicitly check for EOF before trying to read a segment.
* matroska: add --ordered-chapters-files optionGravatar wm42013-12-14
| | | | | This option takes a playlist. The playlist will then be used as list of potential segment files for use with ordered chapters.
* manpage: mention that the "run" does not wait for the commandGravatar wm42013-12-14
|
* Allow some options taking filenames to refer to mpv config dirGravatar wm42013-12-14
| | | | | | | | | | Add the mp_get_user_path() function, and make it expand special path prefixes. Use it for some things in mpv which take filenames (--input-config, --screenshot-template, opengl icc-profile suboption). This allows accessing files in the mpv config dir without hardcoding the config path by prefixing the path with ~~/. Details see manpage additions.
* dvdnav: select longest title by defaultGravatar wm42013-12-14
| | | | This way we probably do the right thing, and avoid all the menu shit.
* vf_dsize: fix bug caused by typoGravatar wm42013-12-14
|
* dvdnav: crappy hack to respect timed still framesGravatar wm42013-12-14
| | | | | | Before this, they were displayed forever. Since some dvd screens seem not to allow escaping from the still frame using the menu, this could get you stuck forever.
* dvdnav, tv: force-disable cachingGravatar wm42013-12-14
| | | | | | | | | On dvdnav, caching kind of works but not really. (Not our fault, at least not fully. It's due to libdvdnav being slightly misdesigned; see previous commit for some explanations.) The TV code is implemented in the demuxer, and the stream implementation is just a wrapper, so caching makes no sense here.
* dvdnav: enable cachingGravatar wm42013-12-14
| | | | | | No idea why this was disabled. It was in the original MPlayer code, which doesn't make much sense to me, because using the MPlayer stream cache seems 100% broken due to design issues.
* dvdnav: block when libdvdnav requests draining buffersGravatar wm42013-12-14
| | | | | | | | | | | Not sure how this should work. Using libdvdnav with a large FIFO doesn't make sense either: data and control commands use the same stream, so if you want to send input to libdvdnav, you just have to read from libdvdnav all the time to get a reaction, which is not compatible with maintaining a buffer that could remain full for a long time. I have no idea either whether this improves or worsens anything, though it might be more correct.
* stream_dvdnav: drop stream buffers on seekGravatar wm42013-12-14
|
* cache: add a way to explicitly resume cacheGravatar wm42013-12-14
|
* cache: try harder on EOFGravatar wm42013-12-14
| | | | | | | | | | | | | EOF is a special case. Normally, the reader will block until the cache thread has new data. Obviously we don't want to do this on EOF, because we'd potentially block forever. On the other hand, EOF will put the cache thread into a waiting state, so if EOF recovers, this will happen at a "later" point. This is bad if there is some kind of external event that ends the EOF condition. In this case, a steram_read() call would still return EOF. Make it so that the reader waits at least for one iteration of the cache trying to rad a new block. Also adjust some debug messages to not print file positions in hex.
* stream: don't seek when seeking to the same positionGravatar wm42013-12-14
| | | | | | There was already something similar in the code that did the actual seek, but I think seeking to the same position could still trigger an actual seek due to weid interaction with the buffer.
* stream: add function for dropping the bufferGravatar wm42013-12-14
| | | | | And use it in demux_lavf.c. It looks like otherwise, some data might be left over, depending on how the hell av_seek_frame() behaves.