mpv/osdep
wm4 e7e06a47a0 demux: support for some kinds of timed metadata
This makes ICY title changes show up at approximately the correct time,
even if the demuxer buffer is huge. (It'll still be wrong if the stream
byte cache contains a meaningful amount of data.)

It should have the same effect for mid-stream metadata changes in e.g.
OGG (untested).

This is still somewhat fishy, but in parts due to ICY being fishy, and
FFmpeg's metadata change API being somewhat fishy. For example, what
happens if you seek? With FFmpeg AVFMT_EVENT_FLAG_METADATA_UPDATED and
AVSTREAM_EVENT_FLAG_METADATA_UPDATED we hope that FFmpeg will correctly
restore the correct metadata when the first packet is returned.

If you seke with ICY, we're out of luck, and some audio will be
associated with the wrong tag until we get a new title through ICY
metadata update at an essentially random point (it's mostly inherent to
ICY). Then the tags will switch back and forth, and this behavior will
stick with the data stored in the demuxer cache. Fortunately, this can
happen only if the HTTP stream is actually seekable, which it usually is
not for ICY things. Seeking doesn't even make sense with ICY, since you
can't know the exact metadata location. Basically ICY metsdata sucks.

Some complexity is due to a microoptimization: I didn't want additional
atomic accesses for each packet if no timed metadata is used. (It
probably doesn't matter at all.)
2018-04-18 01:17:42 +03:00
..
android
ar HIDRemote: fix volume buttons on macOS 10.13 2018-04-17 20:10:17 +03:00
win32
atomic.h demux: support for some kinds of timed metadata 2018-04-18 01:17:42 +03:00
compiler.h
endian.h
getpid.h lua+js: Implement utils.getpid() 2018-02-13 20:16:01 -08:00
glob-win.c
io.c win32: fix semantics of POSIX 2008 locale stubs 2017-11-19 21:10:56 +11:00
io.h win32: fix semantics of POSIX 2008 locale stubs 2017-11-19 21:10:56 +11:00
macOS_mpv_helper.swift cocoa-cb: fix a warning with swift 4.1 and slight cleanup 2018-04-17 21:20:35 +03:00
macOS_swift_bridge.h cocoa-cb: use new libmpv API instead of opengl-cb 2018-03-04 16:26:35 -08:00
macosx_application.h
macosx_application.m cocoa-cb: make fullscreen resize animation duration configurable 2018-02-28 00:48:44 -08:00
macosx_application_objc.h cocoa-cb: initial implementation via opengl-cb API 2018-02-12 04:49:15 -08:00
macosx_compat.h osx: fix macOS 10.13 deprecation warning 2018-01-20 14:43:49 -08:00
macosx_events.h osx: code cleanups and cosmetic fixes 2018-01-20 14:43:49 -08:00
macosx_events.m all: replace mpv_detach_destroy() with mpv_destroy() 2018-03-15 00:00:04 -07:00
macosx_events_objc.h osx: code cleanups and cosmetic fixes 2018-01-20 14:43:49 -08:00
macosx_menubar.h osx: move menu bar creation into its own file 2017-08-18 19:20:41 +02:00
macosx_menubar.m cocoa-cb: initial implementation via opengl-cb API 2018-02-12 04:49:15 -08:00
macosx_menubar_objc.h
macosx_touchbar.h
macosx_touchbar.m
macosx_versions.h
main-fn-cocoa.c
main-fn-unix.c
main-fn-win.c
main-fn.h
mpv.exe.manifest
mpv.rc mpv.rc: readd actual version info 2018-01-01 21:44:01 +00:00
path-macosx.m
path-unix.c
path-uwp.c
path-win.c
path.h
polldev.c osdep: add poll shim for macOS 2017-12-09 21:11:46 +02:00
polldev.h osdep: add poll shim for macOS 2017-12-09 21:11:46 +02:00
posix-spawn.h
semaphore.h
semaphore_osx.c
strnlen.h
subprocess-dummy.c
subprocess-posix.c
subprocess-win.c subprocess-win: don't change the mouse cursor in CreateProcess 2017-12-14 21:35:55 +11:00
subprocess.c
subprocess.h
terminal-dummy.c
terminal-unix.c terminal-unix: fix race condition with tty reset 2017-12-09 21:37:44 +02:00
terminal-win.c
terminal.h
threads.c
threads.h
timer-darwin.c
timer-linux.c build: remove nanosleep() check 2017-12-02 23:29:40 +01:00
timer-win2.c
timer.c Relicense some non-MPlayer source files to LGPL 2.1 or later 2016-01-19 18:36:06 +01:00
timer.h
w32_keyboard.c
w32_keyboard.h
win32-console-wrapper.c
windows_utils.c
windows_utils.h