aboutsummaryrefslogtreecommitdiffhomepage
Commit message (Collapse)AuthorAge
* 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.
| * demux: don't prefix tag output with demuxer nameGravatar wm42013-12-21
| | | | | | | | Add a separate mp_log instance for this purpose.
| * msg: rename mp_msg_log -> mp_msgGravatar wm42013-12-21
| | | | | | | | Same for companion functions.
| * msg: convert defines to enumGravatar wm42013-12-21
| | | | | | | | Also get rid of MSGL_HINT and the many MSGL_DBG* levels.
| * msg: remove legacy stuffGravatar wm42013-12-21
| |
| * vo_opengl_old: remove leftoversGravatar wm42013-12-21
| |
| * macosx_application: replace mp_msg with stderr for semi-fatal errorGravatar wm42013-12-21
| | | | | | | | Apparently this should never be run anyway.
| * cpudetect: remove mp_msg callsGravatar wm42013-12-21
| | | | | | | | Worthless anyway.
| * path lookup functions: mp_msg conversionsGravatar wm42013-12-21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There's a single mp_msg() in path.c, but all path lookup functions seem to depend on it, so we get a rat-tail of stuff we have to change. This is probably a good thing though, because we can have the path lookup functions also access options, so we could allow overriding the default config path, or ignore the MPV_HOME environment variable, and such things. Also take the chance to consistently add talloc_ctx parameters to the path lookup functions. Also, this change causes a big mess on configfiles.c. It's the same issue: everything suddenly needs a (different) context argument. Make it less wild by providing a mp_load_auto_profiles() function, which isolates most of it to configfiles.c.
| * af_export: require filename argumentGravatar wm42013-12-21
| | | | | | | | | | | | Since mp_find_user_config_file() is going to get a context argument, which would be annoying to do in the audio chain (actually I'm just lazy).
| * quvi: mp_msg conversionsGravatar wm42013-12-21
| |
| * charset_conv: mp_msg conversionsGravatar wm42013-12-21
| |
| * stream: mp_msg conversionsGravatar wm42013-12-21
| | | | | | | | We also drop some slave mode stuff from stream_vcd.
| * demux: mp_msg conversionsGravatar wm42013-12-21
| | | | | | | | | | | | | | The TV code pretends to be part of stream/, but it's actually demuxer code too. The audio_in code is shared between the TV code and stream_radio.c, so stream_radio.c needs a small hack until stream.c is converted.
| * playlist_parser: mp_msg conversionGravatar wm42013-12-21
| |
| * x11: mp_msg conversion for fstype help outputGravatar wm42013-12-21
| |
| * encode_lavc: mp_msg conversionsGravatar wm42013-12-21
| | | | | | | | Miss two mp_msg calls, because these conflict with future commits.
| * options: some more mp_msg conversionsGravatar wm42013-12-21
| |
| * av_log: mp_msg conversionGravatar wm42013-12-21
| | | | | | | | | | | | | | | | This is pretty nasty, because FFmpeg/Libav is yet another library with a global message callback. We do something with mutexes trying to get it done, but of course we can't actually solve this problem. If more than one library in a process use FFmpeg/Libav, only one of them will get log messages.
| * m_option: add mp_log context to sub-module print_help callbackGravatar wm42013-12-21
| |
| * m_option: add mp_log callback to OPT_STRING_VALIDATE optionsGravatar wm42013-12-21
| | | | | | | | | | And also convert a bunch of other code, especially ao_wasapi and ao_portaudio.
| * m_option, m_config: mp_msg conversionsGravatar wm42013-12-21
| | | | | | | | | | | | | | | | Always pass around mp_log contexts in the option parser code. This of course affects all users of this API as well. In stream.c, pass a mp_null_log, because we can't do it properly yet. This will be fixed later.
| * m_property: mp_msg conversionsGravatar wm42013-12-21
| | | | | | | | | | Includes some semi-crappy hacks to avoid changing too much code for this conversion (allowing NULL log argument for m_property_do()).
| * input: rework how input sources are addedGravatar wm42013-12-21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Until now, there were two functions to add input sources (stuff like stdin input, slave mode, lirc, joystick). Unify them to a single function (mp_input_add_fd()), and make sure the associated callbacks always have a context parameter. Change the lirc and joystick code such that they take store their state in a context struct (probably worthless), and use the new mp_msg replacements (the point of this refactoring). Additionally, get rid of the ugly USE_FD0_CMD_SELECT etc. ifdeffery in the terminal handling code.
| * m_config: add custom context to includefunc callbackGravatar wm42013-12-21
| |
| * sub/osd: mp_msg conversionsGravatar wm42013-12-21
| |
| * find_subfiles: mp_msg conversionsGravatar wm42013-12-21
| |
| * player/timeline: mp_msg conversionsGravatar wm42013-12-21
| |
| * demux: use fprintf() for printing fatal errorsGravatar wm42013-12-21
| | | | | | | | | | We print these before calling abort(), which is deadly unclean anyway. Avoids having to add log contexts.