summaryrefslogtreecommitdiffstats
<
Commit message (Collapse)AuthorAgeFilesLines
* input: use only one array for input sourceswm42013-07-142-145/+128
| | | | | | | Removes some code duplication. Also restructure the input waiting code a bit: split the select() loop into a input_wait_read() function. On systems which do not have POSIX select(), this function has an alternate implementation, which waits unconditionally.
* w32: silence some warningsJames Ross-Gowan2013-07-132-1/+3
|
* mp_ring: improve documentationStefano Pigozzi2013-07-131-4/+9
| | | | | This improves some lacking areas of the documentation based on some remarks and questions I got on IRC from @jon-y.
* mp_ring: make mp_ring_read_cb provide an exact amount of bytesStefano Pigozzi2013-07-131-1/+1
| | | | | The previous code would pass down `len` instead of `read_len` which, in theory, could be more than what was available in the buffer.
* stream_vcd: use intptr_t cast for _open_osfhandle in accordance to MSDNJonathan Yong2013-07-131-1/+1
|
* configure: fix vcd detection on WindowsJonathan Yong2013-07-131-1/+1
|
* ao_wasapi0: use new mp_ring bufferJonathan Yong2013-07-121-82/+25
|
* m_struct: try to be more standard Cwm42013-07-121-5/+5
| | | | | | | | | | | | The main problem is that this m_struct stuff uses pointers for offsets (why...), so we mangle it by intptr_t. This stuff really should use ints (or in theory ptrdiff_t) for offsets, but changing it would be too much effort, and hopefully this m_struct stuff will go away and replaced by the common option parser mechanism instead. Shuts up warnings on Windows. Patch suggested by jon_y and rossy on IRC.
* stream: remove some more forgotten network stuffwm42013-07-121-13/+0
| | | | Was not cleanly removed with internal network code removal.
* build: change vf_dlopen testwm42013-07-123-5/+16
| | | | Didn't work on Windows. Apparently, WIN32 is not set in the Makefile.
* build: make the "built on" report opt-outStephen Hutchinson2013-07-112-1/+19
|
* Fix loading external subtitles with libassBin Jin2013-07-111-1/+1
|
* cocoa_common: change video size when changing screen DPIStefano Pigozzi2013-07-101-0/+8
| | | | | This improves the situation when moving a window from screens with different DPIs.
* options: add --cache-default optionwm42013-07-107-20/+26
| | | | | | | | | | | | Add this option, which lets users set the cache size without forcing it even when playing from the local filesystem. Also document the default value explicitly. The Matroska linked segments case is slightly simplified: they can never come from network (mostly because it'd be insane, and we can't even list files from network sources), so the cache will never be enabled automatically.
* configure: add libdl detection to ladspa, vf_dlopenRudolf Polzer2013-07-093-2/+14
|
* configure: fix oversight in log messagewm42013-07-081-1/+1
|
* command: add screenshot_to_file commandwm42013-07-088-28/+116
|
* input: actually copy sub commandswm42013-07-081-0/+12
| | | | | | | | | This was missing from the previous commit. It worked by luck, because the sub-commands weren't freed either (as long as the original command was around), but this is proper. Also, set the original string for command lists (needed for input-test only).
* cache: fix compilation without posix timersStefano Pigozzi2013-07-081-0/+1
| | | | | | This is a regression caused by 854303a. This commit removed the include of `sys/time.h` which was included in `cache.c` through a chain of recurvive includes.
* input: allow binding multiple commands to a keywm42013-07-084-6/+74
| | | | Separate the commands with ';'.
* configure: make zlib non-optionalwm42013-07-081-1/+1
| | | | | | This is needed by demux_mkv to decode files with compressed tracks. Requested by nikoli.
* Merge remote-tracking branch 'origin/low_quality_intel_crap'Martin Herkt2013-07-082-14/+17
|\ | | | | | | | | Conflicts: video/out/gl_video_shaders.glsl
| * Merge branch 'master' into low_quality_intel_crapwm42013-04-30147-7124/+7534
| |\ | | | | | | | | | | | | | | | Conflicts: video/out/gl_video_shaders.glsl video/out/vo_opengl.c
| * | vo_opengl: avoid texture arrays for compatibility with Intel low quality crapwm42013-03-052-10/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Commit a0b43a1 changed textures to an array, because additional per-texture information was needed and managing this as array is more elegant. This broke playback on Windows with Intel drivers (window shows green video, even though subtitles/OSD work correctly). So change it back to make it work again. Affected driver: Intel(R) HD Graphics 3000 9.17.10.2932
* | | manpage: proofread and fix formattingMartin Herkt2013-07-089-2124/+2246
| | |
* | | stream/tv: remove unused dshow-specific optionsMartin Herkt2013-07-082-26/+1
| | |
* | | sub: Do not use deprecated “Sans” fontconfig aliasMartin Herkt2013-07-081-1/+1
| | |
* | | stream_radio: fix buildwm42013-07-081-0/+4
| | | | | | | | | | | | | | | | | | | | | This was accidentally broken with 37c5c11 and has been nroken for 5 months. Does anyone (want to) use this at all?
* | | configure: fix previous commitwm42013-07-081-1/+1
| | | | | | | | | | | | | | | | | | This doesn't help if -pthread is omitted. (Apparently, glibc 2.17, on which I tested the previous commit, doesn't require -lpthread in order to use pthreads either.)
* | | configure: link with -lrtwm42013-07-081-0/+16
| | | | | | | | | | | | | | | In order to use clock_gettime() (which we need for use with pthread_cond_timedwait()), most glibc versions need to link with -lrt.
* | | Fix building with --disable-libasswm42013-07-081-0/+2
| | | | | | | | | | | | Obscure corner case, but in theory we support this.
* | | stream: unbreak streams with large sector sizes (stream_cdda)wm42013-07-071-1/+2
| | | | | | | | | | | | | | | | | | | | | Commit 7b16d4b changed some stream implementations to check the buffer size passed to them. This made stream_cdda stop working, because the default buffer size is smaller than the CDIO frame size. So pass the sector size instead of the (arbitrary) default buffer size.
* | | osdep: remove unused mmap compatibility hackswm42013-07-075-176/+1
| | | | | | | | | | | | | | | | | | | | | Not sure how this worked. Only af_export.c and tvi_v4l2.c were using mmap, but they didn't include osdep/mmap.h or mmap_anon.h. In any case, we trust that the target system is sufficiently POSIX compliant if mmap is actually defined (as checked by configure).
* | | configure: simplify arch macroswm42013-07-071-33/+12
| | |
* | | configure: prune some more crapwm42013-07-071-45/+0
| | | | | | | | | | | | All of the removed lines are hopefully useless and didn't do anything.
* | | stream: don't treat position 0 speciallywm42013-07-071-7/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | Seeking to position 0 meant to try reconnecting with some streams, actually just the internal http implementation. This has been removed, so we don't need the special handling anymore. This means we don't have to be stuck in a retry loop if the stream doesn't even support reconnect.
* | | Remove some leftovers from network removalwm42013-07-077-213/+4
| | | | | | | | | | | | | | | | | | | | | | | | stream_vstream.c in particular was actually dependent on the network code, and didn't compile anymore. Cleanup the protocol list in mpv.rst, and add some missing ones supported by libavformat to stream_lavf.c.
* | | stream: remove weird STREAMTYPE_STREAM special handlingwm42013-07-076-50/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | This was an old leftover from an earlier cleanup (which happened in 2003), and which used "special" stuff for streams that could be only forward-seeked. Also, don't add mode flags to s->flags; they're supposed to be in s->mode instead.
* | | stream: re-add accidentally removed seek callwm42013-07-071-0/+7
| | | | | | | | | | | | | | | | | | | | | This was under CONFIG_NETWORKING, so in theory it should have been save to remove. But actually this disables forward skipping when reading from a pipe. (Still a questionable feature, because it doesn't behave well with libavformat - but it was not supposed to be changed.)
* | | manpage: fix section headingsMartin Herkt2013-07-073-26/+27
| | |
* | | Remove internal network supportwm42013-07-0728-6240/+43
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit removes the "old" networking code in favor of libavformat's code. The code was still used for mp_http, udp, ftp, cddb. http has been mapped to libavformat's http support since approximately 6 months ago. udp and ftp have support in ffmpeg (though ftp was added only last month). cddb support is removed with this commit - it's probably not important and rarely used if at all, so we don't care about it.
* | | core: make network options available even if old net code is disabledwm42013-07-077-25/+21
| | | | | | | | | | | | Preparation for removing the old network code.
* | | ao_jack: allow more control about channel layoutswm42013-07-073-1/+37
| | |
* | | ao_jack: increase buffer size, always round up buffer sizewm42013-07-061-2/+2
| | | | | | | | | | | | | | | This should help with github issue #128, which reported stuttering distorted sound with 6 channel audio, but not with 2 channels.
* | | configure: rename --enable/disable-libquvi to --enable/disable-libquvi4wm42013-07-051-15/+15
| | | | | | | | | | | | | | | | | | | | | --disable-libquvi creates the impression that it disables libquvi 0.9 as well. It doesn't, because it refers to libquvi 0.4, and 0.4 and 0.9 are practically completely different libraries. Make this more explicit by renaming the switch to include the "4" version number.
* | | dither: don't use long doublewm42013-07-051-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This fixes compilation with broken libcs, like on Cygwin. C99 absolutely requires long double and associated functions like expl, even if long double is double. But newlib (used by cygwin) omits declaration for these if long double is equivalent to double. The extra precision is not needed here, so remove it to make life easier for the single person using mpv with cygwin.
* | | playlist: don't add entries in reversewm42013-07-051-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | The entries were always added after the insertion point - but that means the entries are appended in reverse order. So update the insertion point on each entry. Regression introduced by commit 5f664d7.
* | | stream: make eof flag more consistentwm42013-07-041-1/+6
| | | | | | | | | | | | | | | | | | When reading something successfully, the eof flag should never be 1, so clear it in these situations. The eof flag will be set properly on the next read call.
* | | core: remove mp_fifo leftoverswm42013-07-044-43/+0
| | |
* | | wayland: remove mp_fifo headerAlexander Preisinger2013-07-031-1/+0
| | |
* | | cocoa: remove usage of mp_fifoStefano Pigozzi2013-07-035-12/+2
| | | | | | | | | | | | | | | | | | Update Cocoa parts to remove usage of the mp_fifo internal API to send events to the core and use the input context directly. This is to follow commits the work in commits 70a8079c and d603e73c.
* | | wayland: fix typoAlexander Preisinger2013-07-031-1/+1
| | |
* | | wayland: remove unused membersAlexander Preisinger2013-07-031-2/+0
| | |
* | | wayland: remove mp_fifoAlexander Preisinger2013-07-021-7/+7
| | |
* | | wayland: implement MOUSE_LEAVEAlexander Preisinger2013-07-021-0/+2
| | |
* | | core: cleanup more mp_fifo leftoverswm42013-07-0211-45/+39
| | | | | | | | | | | | Now only the OSX and Wayland parts are using this.
* | | core: remove mp_fifo indirectionwm42013-07-0212-110/+74
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | For some reason mp_fifo specifically handled double clicks, and other than that was a pointless wrapper around input.c functionality. Move the double click handling into input.c, and get rid of mp_fifo. Add some compatibility wrappers, because so much VO code uses these functions. Where struct mp_fifo is still used it's just a casted struct input_ctx.
* | | command: add some playlist manipulation commandswm42013-07-026-0/+55
| | | | | | | | | | | | playlist_remove and playlist_move.
* | | stream_lavf: request and read streamcast/ICY metadatawm42013-07-021-4/+89
| | | | | | | | | | | | Requires recent ffmpeg git, otherwise will do nothing.
* | | core: update metadata during playback, allow streams to export metadatawm42013-07-026-1/+45
| | | | | | | | | | | | | | | | | | | | | STREAM_CTRL_GET_METADATA will be used to poll for streamcast metadata. Also add DEMUXER_CTRL_UPDATE_INFO, which could in theory be used by demux_lavf.c. (Unfortunately, libavformat is too crappy to read metadata mid-stream for mp3 or ogg, so we don't implement it.)
* | | cache: fix per-block metadata memory leakwm42013-07-021-0/+1
| | |
* | | input: require VOs to send key up events, redo input key lookup