aboutsummaryrefslogtreecommitdiffhomepage
Commit message (Collapse)AuthorAge
...
* demux_lavf: add hack for MicroDVD for assuming frame based timingGravatar wm42014-01-10
| | | | | | | | | | | MicroDVD files _can_ contain real timestamps instead of frame timestamps if they declare a FPS. But this seems to be rare, so ignore that if the FPS happens to match with the libavformat microdvd parser's default FPS. This might actually break files that declare 23.976 FPS, but the video file is not 23.976 FPS, but the chance that this happens is probably very low, and the commit fixes the more common breakage with 25 FPS video.
* sub: fix frame based subtitle timestamp handlingGravatar wm42014-01-09
| | | | | | Subtitle formats with frame based timing require using the video FPS to compute proper subtitle timestamps. But it looks like the calculation to do that was inversed.
* options: don't reset pause mode when switching to next fileGravatar wm42014-01-09
| | | | | | This basically reverts the default as set by commit 812798c5. This seems to be a matter of taste, but personally I think keeping the pause setting is better.
* command: don't access VO for output parametersGravatar wm42014-01-09
| | | | | | Use the video chain for this instead. This is for facilitating coming changes, which will clean up the vo->aspdat stuff, and this code would be in the way.
* wayland: properly empty output listGravatar Alexander Preisinger2014-01-08
|
* wayland/shm: don't crash if initialization failedGravatar Alexander Preisinger2014-01-08
|
* wayland: fix crash when initialization failsGravatar wm42014-01-08
| | | | | | On X11, if no wayland compositor is running, wl_list_init() will never be called. This will cause destroy_display() to segfault when trying to iterate over the list.
* player: strip 'file://' from filenames on playback startGravatar wm42014-01-08
| | | | | | | | | | | | This fixes two things: 1. Dropping files on the VO window will auto-load subtitles (since most drag & drop code prefixes the filenames with 'file://', and the subtitle auto-load code considers 'file://' non-local) 2. Fix behavior of the %x screenshot filename template (similar problem) One could force all that code to special-case 'file://' URLs, but just replacing the filename on playback start is simpler.
* screenshot: add format specifiers to get file directory pathGravatar wm42014-01-08
| | | | | Useful if you want to put the screenshot into the same directory as the file that is being played.
* wayland/shm: tone down warningsGravatar Alexander Preisinger2014-01-08
| | | | Those warnings are printed far too often and actually aren't usefull at all.
* wayland: fix memory leaksGravatar Alexander Preisinger2014-01-08
| | | | | There are still some leaks from wayland-cursor stuff, but there is no way to free the memory as user of the cursor library.
* player: fix setting smaller timeout on Windows systemsGravatar wm42014-01-08
| | | | | | | On Windows, we don't have proper input event wakeup handling, so we need to lower the playloop timeout in order to react fast to input. Closes #387.
* waf: do not use TaskGen for PDF build ruleGravatar Martin Herkt2014-01-08
| | | | No longer necessary.
* wayland: cleanup registry_handle_globalGravatar Alexander Preisinger2014-01-08
| | | | | The wl_registry object is already passed as a parameter. No need to create a temporary variable.
* wayland: remove set_user_data from seat_listenerGravatar Alexander Preisinger2014-01-08
| | | | | | | | | The user_data is passed on add_listener and can later be changed with set_user_data. But because we don't want to change it later and because it is the same object remove the set_user_data call. This might be a copy&paste leftover from the initial draft for the wayland backend.
* wayland: use static consistentlyGravatar Alexander Preisinger2014-01-08
| | | | Declare everything that is only needed inside wayland_common.c as static.
* Switch PDF manual generation to rst2pdfGravatar Martin Herkt2014-01-08
| | | | | | | This finally gets rid of the LaTeX dependency. We should actually be using docultils directly here, but I didn't do this because of all the potential Python 2/3 breakage.
* terminal: don't initialize termcap etc. if stdout is not a terminalGravatar wm42014-01-07
| | | | | Otherwise, it seems one of the term* libraries will write escape sequences to stdout, for whatever reason.
* ao_pulse: lower default buffer size from 1000ms to 250msGravatar wm42014-01-07
| | | | | | | | | | 1000ms is a bit insane. It makes behavior on playback speed changes worse (because the player has to catch up the dropped audio due to audio-chain reset), and perhaps makes seeking slower. Note that the problem of playback speed changes misbehaving will be fixed in the future, but even then we don't want to have a buffer that large.
* ao_pulse: add suboption to control buffer sizeGravatar wm42014-01-07
|
* wayland: fix fullscreen & resizing for goodGravatar Alexander Preisinger2014-01-07
| | | | | | | I added enough logic to never set ontop or fullscreen twitce. This commit keeps also the size of the video if multiple videos are played. If the ratio differs the width will be kept at the same size and only the height changes.
* manpage: mention how to get a list of codecs for use with --hwdec-codecsGravatar wm42014-01-07
|
* wayland: silence annoying libwayland-client messageGravatar wm42014-01-07
| | | | | | | | | | | | | | | | | libwayland-client contains the following code [1]: runtime_dir = getenv("XDG_RUNTIME_DIR"); if (!runtime_dir) { fprintf(stderr, "error: XDG_RUNTIME_DIR not set in the environment.\n"); This means this message will unconditionally and unavoidably be printed if XDG_RUNTIME_DIR is not set. Since mpv is a terminal program, and we want to avoid unnecessary output, work it around by not attempting to use wayland if this environment variable is not set. [1] http://cgit.freedesktop.org/wayland/wayland/tree/src/wayland-client.c#n636 (cd0dccd01e16fa404e03974d30ded3aebdb1c4bc)
* wayland: fix some memory leaks on initialization failureGravatar wm42014-01-07
| | | | | | | | | | | This commonly happens when initializing vo_opengl on a X11-only system. Unfortunately, most wl_*_destroy() functions appear not to accept NULL pointers, making partial deinitialization a pain: you have to add your own NULL checks everywhere to avoid crashes. xkb.context is uninitialized separately, because you can initialize it just fine, even if the rest of input initialization fails.
* demux_lavf: fix minor memory leakGravatar wm42014-01-07
|
* audio: fix previous commitGravatar wm42014-01-06
|
* Fix audio delay inversionGravatar Martin Herkt2014-01-06
|
* sub: fix previous commitGravatar wm42014-01-06
| | | | sub_seek and sub_step were broken.
* Fix subtitle delay inversionGravatar Martin Herkt2014-01-06
|
* w32_common: reformat yet againGravatar Martin Herkt2014-01-06
| | | | | I've been told mpv prefers switch/case on the same indent level. Sorry about the noise :P
* cocoa: don't reset window size when the video size doesn't changeGravatar Stefano Pigozzi2014-01-06
| | | | Fixes #459
* w32_common: don't force topmost on fullscreenGravatar Martin Herkt2014-01-06
| | | | Fixes #457, #444.
* Windows: use roaming AppData instead of localGravatar Martin Herkt2014-01-06
| | | | Whatever. Fixes #458.
* win32-console-wrapper: use child process exit codeGravatar Martin Herkt2014-01-06
|
* win32-console-wrapper: remove command line manglingGravatar Martin Herkt2014-01-06
| | | | This wasn't really necessary and caused a lot of problems.
* w32_common: reformat slightlyGravatar Martin Herkt2014-01-06
| | | | This really needs more whitespace.
* w32_common: use OLE DnD for text/uri-list supportGravatar xnoreq2014-01-06
| | | | Signed-off-by: Martin Herkt <lachs0r@srsfckn.biz>
* win32-console-wrapper: Fix heap corruptionGravatar Martin Herkt2014-01-06
| | | | FUCK the Windows API.
* build: don't depend on both libavresample and libswresampleGravatar wm42014-01-05
| | | | | | When both libavresample and libswresample were detected, the script enabled both at the same time. This is not supported; although nothing bad happened apparently. Make the dependencies both mutually exclusive.
* quvi: add option to not fetch subtitlesGravatar Andre D2014-01-05
| | | | Signed-off-by: wm4 <wm4@nowhere>
* player: always ise [statusline] for terminal OSDGravatar wm42014-01-05
| | | | | | This was inconsistent: the actual statusline used [statusline] as message prefix, while other parts of the terminal OSD used [cplayer] (and MSGL_STATUS). This commit makes it consistent.
* player: print an error message if run command failsGravatar wm42014-01-05
| | | | | | | | | | | Note that we can't use mp_msg, because it's not async-signal safe (we might be running other threads while forking, so only functions specified to be async-signal safe can be called, and this doesn't include stdio; mp_msg acquires a mutex too). Also, always print a \n before running the program to flush the status line. The effect is that a program running successfully as well as the error message will effectively start on a new line.
* manpage: fix typoGravatar wm42014-01-05
|
* player: don't select subtitles added from quvi by defaultGravatar wm42014-01-05
| | | | | | | | | | Quvi subtitles are considered external subtitles (simply because they're separate from the audio/video stream), but for the sake of subtitle auto-selection, they should not be considered external. Change this so that quvi subtitles are treated like muxed subtitles (with default flag never set). This means subtitles won't be selected by default, unless explicitly requested with --sid or --slang.
* Revert "wayland/egl: use redraw callback"Gravatar Alexander Preisinger2014-01-04
| | | | | | | | | | | Because of this commit there were problems displaying the frmase in their right order. This reverts commit 96e75d234a4df1a09f38eaf932d00d79dccdc324. Conflicts: video/out/gl_wayland.c video/out/wayland_common.h
* wayland: remove workaroundGravatar Alexander Preisinger2014-01-04
| | | | | | | | The changes in the vo_wayland_ontop function have no effect on the workaround. Somehow the problem just disappeared. I guess it is because of the new control function in gl_wayland.c where the resize happens immediatly after the event dispatch/flush.
* wayland: fix obvious bug in dnd codeGravatar Alexander Preisinger2014-01-04
| | | | I still don't think this is the right approach.
* input: change mp_input_run_cmd signatureGravatar wm42014-01-04
| | | | | | | | I don't like this function at all, but it's basically a trick to get the input's mp_log instance in a case the mp_input_parse_cmd_strv() is almost certainly not going to output anything. But still make it somewhat more consistent with mp_input_parse_cmd_strv() - why force the caller to always use MP_ON_OSD_AUTO?
* video/out: remove some code duplication between X11 and waylandGravatar wm42014-01-04
| | | | | | Both X11 and Wayland support the same format for drag & drop operations (text/uri-list), and the code for that was copied from x11_common.c to wayland_common.c. Factor it out.
* demux_subreader: reject file if not opened by --subGravatar wm42014-01-04
| | | | | | | demux_subreader.c contains the old MPlayer subtitle parser, and I have absolutely no confidence in this (very crappy) code. There might be one or two security risks associated with running that code on arbitrary input.