aboutsummaryrefslogtreecommitdiffhomepage
Commit message (Collapse)AuthorAge
* 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.
* build: fix build on old build systemGravatar Stefano Pigozzi2014-01-04
| | | | Regression from 082c5c19
* cocoa: handle files drag and drop on the player video viewGravatar Stefano Pigozzi2014-01-04
|
* cocoa: refactor files drag and drop on the Dock iconGravatar Stefano Pigozzi2014-01-04
| | | | | Use the newly added `mp_event_drop_files` core function instead of having logic in the platform dependent code.
* input: move files drag and drop to a new event.c fileGravatar Stefano Pigozzi2014-01-04
| | | | | event.c will be used to feed the input queue with 'global' events that don't mesh well with the usual check_events path in mpv.
* wayland/egl: misc fixes and cleanupsGravatar Alexander Preisinger2014-01-04
|
* wayland/egl: use redraw callbackGravatar Alexander Preisinger2014-01-04
| | | | | | | This solves the issue where we would not receive any frame events. The difference to my earlier tests is that now it looks like eglSwapBuffers uses it's own event queue or something similiar along the lines. Becaues the performance is the same as without any redraw callback.
* wayland/egl: add egl_context to the wayland stateGravatar Alexander Preisinger2014-01-04
| | | | | | | | | | | At the moment there are visual glitches when we resize the window. This happens because in wayland there a special function for resizing EGL windows. To prevent the glitches move the egl_context to the wayland state in wayland_common.h and add a new control function to gl_wayland.c to wrap the vo_wayland_control function to check for resize events. With the new control wrapper the glitches are gone and the resizing is fluid.
* wayland: Remove nonsense comment and add warningGravatar Alexander Preisinger2014-01-04
| | | | | | | | | The reason a segmentation happend here was because we couldn't get the requested minor version. The major version is enough for differentiating between OpenGL 3 and OpenGL 2. If it fails there is still a fallback to any version available. Also add a warning if we use the fallback.
* wayland: move workaround to fullscreen codeGravatar Alexander Preisinger2014-01-04
| | | | | Because of this workaround there was a bug in the wayland vo. Now it works on both vos (opengl and shm) as it should.
* wayland: implement dropping files on the VO windowGravatar Alexander Preisinger2014-01-04
| | | | Needs some proper testing.
* vo: dropping subtitle files on the VO window adds them as subtitle filesGravatar wm42014-01-04
| | | | | | | Note that we don't try to be clever about detecting the files as subtitles: we just check the file extension. We could go all the way and check the files by opening them with a demuxer, but that would probably do more bad than good.
* x11: implement dropping files on the VO windowGravatar wm42014-01-04
| | | | | | | | | | | | | | | | | | | | Drag and drop is pretty complicated (just note how the number of Atoms in use almost doubles), so I'm not sure whether this works everywhere. This has been written by looking at the specification [1] or what looks like the specification, and some external example code [2]. (The latter one has no code license, but we didn't copy any code.) We completely ignore the "requirement" of the spec. that the filename "must" include username and hostname, e.g. "file://user@host/path/file". In theory, this is required because X is network transparent, but at this point the so called network transparency is a complete joke, and Konqueror for one didn't include hostnames in "file://" URIs. Tested with konqueror as drop source. [1] http://www.newplanetsoftware.com/xdnd/ [2] http://www.edwardrosten.com/code/dist/x_clipboard-1.1/paste.cc
* vo: add vo_drop_files()Gravatar wm42014-01-04
| | | | Intended to be used for GUI drag & drop.
* manpage: mention --pauseGravatar Martin Herkt2014-01-03
|
* dvdnav: set correct stride for fake highlightsGravatar wm42014-01-03
| | | | | This didn't really matter, because the fake highlight rectangle is in a single color, and every pixel has the same color value.
* stream_pvr: fix crash on initializationGravatar wm42014-01-03
| | | | Fallout from the mp_msg conversions.
* audio: check for overflowsGravatar wm42014-01-03
|
* bstr: check for overflow in buffer allocationGravatar wm42014-01-03
| | | | | We're being a little bit lazy here and limit the max allocation to SIZE_MAX/2, which is practically infinite anyway on 64 bit systems.
* ta: check overflow in array realloc macrosGravatar wm42014-01-02
|
* vda: fix build on OS X 10.7Gravatar Stefano Pigozzi2014-01-02
| | | | | Looks like on 10.8 OpenGL.h recursively includes CGLIOSurface.h. That is not the case for 10.7 so the build was broken on that version of OS X.
* ao_alsa: remove 9 year old typoGravatar wm42014-01-02
| | | | | Actually, remove the whole comment, because it's outdated and get_space() returns the number of free samples now.
* build: fix cocoa configure check on OS X 10.7Gravatar Stefano Pigozzi2014-01-02
| | | | | It failed because the 10.7 SDK doesn't natively support array and dictionary subscripting.
* wayland/opengl: fix garbage bordersGravatar Alexander Preisinger2014-01-02
| | | | | It seems mpv draws garbage in those regions. Now we calculate the aspect and let weston draw the black borders.
* wayland/shm: only commit new framesGravatar Alexander Preisinger2014-01-02
| | | | | Only attach and commit new buffers. This also increases performance when paused.
* wayland: don't change set fullscreen twiceGravatar Alexander Preisinger2014-01-02
| | | | | Newest weston chrashes if we call set_fullscreen twice. This is a major bug I which I should probably report.
* ao_alsa: Unbreak pause/resumeGravatar Martin Herkt2014-01-02
| | | | Well that was dumb.
* ao_alsa: Fix PCM resume after suspendGravatar Martin Herkt2014-01-02
| | | | Fixes #324
* Add Windows console wrapper program (mpv.com)Gravatar Martin Herkt2014-01-02
|
* Windows: use the GUI subsystem, attach to consoleGravatar Martin Herkt2014-01-02
| | | | | | | | This is necessary to start mpv without forcing a console window, but also breaks console usability. A workaround is to call mpv from a wrapper process that uses the console subsystem and helps redirecting the standard streams and WriteConsole output to where they belong.
* osdep/io, mp_vfprintf: split out console detectionGravatar Martin Herkt2014-01-02
|
* stream: always respect sector_size, fixes cdda://Gravatar wm42014-01-02
| | | | | | | | | | | | Streams like CDDA have special requirements in what quantities data can be read: you can only read a sector at once, not more and not less. The stream_peek() function didn't respect that and set less (used internal buffer size of 2048 bytes, instead of CD sector size of 2352 bytes), so no data was read and EOF was accidentally set, making playback with cdda:// fail. This is a regression since commit 9a723f, but that commit merely exposed the issue (the redundant seek would clear the EOF flag).
* build: fix typoGravatar Stefano Pigozzi2014-01-01
|
* build: make configure fail if both __atomic and __sync are not availableGravatar Stefano Pigozzi2014-01-01
|
* manpage: clarifications about bitmap subtitles and --secondary-sidGravatar wm42014-01-01
|
* options: make --msglevel=help print something helpfulGravatar wm42014-01-01
|
* manpage: fix description on the slave mode msglevelGravatar wm42014-01-01
|