aboutsummaryrefslogtreecommitdiffhomepage
Commit message (Collapse)AuthorAge
* corevideo: fix video initialization when not using VDAGravatar Stefano Pigozzi2013-12-26
| | | | | | | query_format was setting state even if wasn't the correct thing to do. Somehow it worked by pure luck (until commit e6e6b88b6da). Fix the initialization by setting state inside of reconfig.
* build: fix shm detection on OpenBSDGravatar Stefano Pigozzi2013-12-26
| | | | Fixes #427
* build: support multiple headers in check_statementGravatar Stefano Pigozzi2013-12-26
| | | | This feature will be used in the next commit.
* mpv.desktop: add KDE file handlersGravatar Sven-Hendrik Haase2013-12-26
| | | | | | | | | | Currently KDE will copy a media file into a temporary folder instead of trying to stream it if a KIO slave location file is started. This change will tell KDE to make mpv try to directly play the file. Perhaps the proper flags should be added according to the individual enabled features of the build but I suggest that be for the future. Signed-off-by: wm4 <wm4@nowhere>
* options: simplify handling of some help optionsGravatar wm42013-12-26
|
* input: cosmetics: move code aroundGravatar wm42013-12-26
| | | | Rearrange the code in an attempt to make its organization more logical.
* input: split off some code from input.c to separate filesGravatar wm42013-12-26
| | | | This is mostly just moving code around.
* build: hide duplicate options from `--help`Gravatar Stefano Pigozzi2013-12-26
| | | | | | Hide --enable variants from [autodetect]'ed options and --enable/--disable variants for [enable]'d/[disable]'d options. The hidden options are still usable, just hidden for more readability.
* cocoa: sanitize window title string and guard against NULLGravatar Stefano Pigozzi2013-12-25
| | | | | | | | | | | If the utf8 string used to create the NSString for title was invalid utf8, -stringWithUTF8String returned nil and triggered an assertion in Cocoa's framework code. Sanitize the utf8 string and if the sanitation wasn't enough just avoid crashing by not setting a title. Fixes #406
* vo_x11/vo_xv: fix build when using --disable-xextGravatar Stefano Pigozzi2013-12-25
|
* player: deselect secondary sub when switching to file with different tracksGravatar wm42013-12-25
| | | | | | This applies the usual logic of resetting stream selections to default when switching to a file with a different track layout. (This is to prevent selecting random streams.)
* player: fix initial selection with --secondary-sidGravatar wm42013-12-25
| | | | | | | | Also, make sure that a track can't be selected twice. While this might work in some situations, it certainly won't work with subtitles demuxed from a stream. Fixes #425.
* player: add --secondary-sid for displaying a second subtitle streamGravatar wm42013-12-24
| | | | | | | This is relatively hacky, but it's Christmas, so it's ok. This does two things: 1. allow selecting two subtitle tracks, and 2. include a hack that renders the second subtitle always as toptitle. See manpage additions how to use this.
* player: add infrastructure to select multiple tracks at onceGravatar wm42013-12-24
| | | | | Of course this does not allow decoding multiple tracks at once; it just adds some minor infrastructure, which could be used to achieve this.
* player: do initial seek for external tracks only onceGravatar wm42013-12-24
| | | | | | Normally, there can be only one demuxer stream active for each demuxer of an external file, but this assumption will be broken for multiple subtitles support.
* player: slightly simplify seeking in external filesGravatar wm42013-12-24
| | | | | | | For some reason, this checked whether there are external tracks at all before doing any seeks. Possibly this was to avoid multiple get_main_demux_pts() calls, but calling this multiple times shouldn't be too bad.
* player: redo demuxer stream selectionGravatar wm42013-12-24
| | | | | | | Use struct track to decide what stream to select. Add a "selected" field and use that in some places instead of checking mpctx->current_track.
* audio: fix format ID conversionGravatar wm42013-12-23
| | | | | AV_SAMPLE_FMT_NONE != 0, could apparently cause crashes in certain situations.
* changes.rst: add entry for dvdnav menuGravatar wm42013-12-23
|
* manpage: mention video-unscaled propertyGravatar wm42013-12-23
|
* player: fix typo in previous commitGravatar wm42013-12-23
| | | | Apparently I pushed too quickly.
* player: warn if Matroska font attachments have incorrect MIME typeGravatar wm42013-12-23
| | | | | | Normally we shouldn't load these files. But for some reason it was added in commit b784346e some years ago, and disabling this hack would probably be an inconvenience. So just print a warning.
* options: print any options set in verbose modeGravatar wm42013-12-23
| | | | | So we will know whether someone uses broken config file options when posting a log with -v.
* options: disable joystick by defaultGravatar wm42013-12-23
|
* vaapi: fix initialization error code pathGravatar wm42013-12-23
| | | | "res" can be uninitialized in the error case.
* subreader: replace some strcpy callsGravatar wm42013-12-22
|
* subreader: remove overlapping strcpyGravatar wm42013-12-22
| | | | Looks like this relied on undefined behavior.
* asxparser: remove commented codeGravatar wm42013-12-22
|
* stream_smb: remove dead codeGravatar wm42013-12-22
| | | | | Yep, smb_username/password were unused since forever, even in MPlayer. Removal untested. (Does anyone even use smb://?)
* player: simplify mp_load_per_file_configGravatar wm42013-12-22
| | | | | Get rid of the stupid and error-prone buffer size calculations, use snprintf instead of strcpy.
* player: move code aroundGravatar wm42013-12-22
| | | | | | The only thing that used mp_load_per_file_config() was inside configfiles.c too, so remove the declaration from core.h and move the function before its use.
* player: remove code duplication for auto-loaded config profilesGravatar wm42013-12-22
| | | | | | Code for loading "[vo.vdpau]" profiles and similar. The messages printed on loading change, but other than that, everything should behave about the same.
* path: add function to split URL into prefix and pathGravatar wm42013-12-22
| | | | Used in the following commit.
* path: don't accept empty protocol as validGravatar wm42013-12-22
| | | | mp_is_url("://") returned true.
* path: change mp_splitext() semanticsGravatar wm42013-12-22
| | | | | | | | | Including the "." in the returned extension was too inconvenient. I think originally, the semantics were supposed to work like in Python, but screw this. Also, return NULL instead of "" on failure (which is what its only user actually seems to expect).
* stream_radio: suppress error with -Werror=format-security compilation flagGravatar Miro HronĨok2013-12-22
| | | | Signed-off-by: wm4 <wm4@nowhere>
* vo_vdpau: fix unintended truncation of 64 bit timestamps to 32 bitGravatar wm42013-12-22
| | | | | | | | How embarrassing... This code is inactive for all VOs other than vo_vdpau. For vo_vdpau, this caused various issues, such as stuttering after about an hour of running mpv; see github issue #403.
* vo_vdpau: add some debugging messages for frame timingGravatar wm42013-12-22
| | | | | | Note that this will print a difference even with perfect sync, because the code queues the frames _between_ vsync, probably for error margin (though I don't understand why it uses the exact values chosen).
* Don't include version.h from make options.cGravatar wm42013-12-22
| | | | | | | | | I find this annoying. It's the reason common/version.c exists at all. options.c did this for the user agent, which contains the version number. Because not including version.h means you can't build the user agent and use it in mp_default_opts anymore, do something rather awkward in main.c to initialize the default user agent.
* stream: minor cookie cleanupGravatar wm42013-12-22
| | | | | Avoid global state (reload cookie file every time), actually free loaded cookies, use mp_get_user_path() for cookie file.
* options: move network related options to MPOptsGravatar wm42013-12-22
|
* msg: add some comments about thread-safetyGravatar wm42013-12-22
|
* gl_lcms: actually acquire mutexGravatar wm42013-12-22
| | | | Prevents race conditions (which can happen only in theory anyway).
* options: make --msglevel extend previous settingsGravatar wm42013-12-22
| | | | | | Make it so --msglevel extends previous --msglevel uses, instead of overwriting them. Do this by literally appending the --msglevel option value to the previous one.
* vda: attempt to fix build (2)Gravatar wm42013-12-22
| | | | Still no OSX here.
* path-macosx: attempt to fix buildGravatar wm42013-12-22
| | | | Untested... no OSX here.
* Merge branch 'msg_refactor'Gravatar wm42013-12-21
|\ | | | | | | | | This branch changes mp_msg() so that it doesn't require global context. The changes are pretty violent.
| * msg: remove global stateGravatar wm42013-12-21
| |
| * msg: don't prefix slave-mode stuff by defaultGravatar wm42013-12-21
| |
| * player: use separate msg prefix for statuslineGravatar wm42013-12-21
| | | | | | | | | | So the user can specifically mute or unmute the status line with --msglevel. Accidentally removed with commit 5e0c4ec3.