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 android: posix_spawn(p) replacement 2017-09-22 09:24:19 +02:00
ar HIDRemote: fix volume buttons on macOS 10.13 2018-04-17 20:10:17 +03:00
win32 win32: fix massive memory corruption (take 2) 2017-08-21 18:42:04 +02:00
atomic.h demux: support for some kinds of timed metadata 2018-04-18 01:17:42 +03:00
compiler.h osdep/compiler.h: change license to LGPL 2017-05-08 13:11:46 +02:00
endian.h
getpid.h lua+js: Implement utils.getpid() 2018-02-13 20:16:01 -08:00
glob-win.c Universal Windows Plaform (UWP) support 2017-06-29 10:36:16 +02:00
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 osx: move menu bar creation into its own file 2017-08-18 19:20:41 +02:00
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 osx: refactor menu bar creation 2017-08-18 19:20:41 +02:00
macosx_touchbar.h osx: change license of OSX and cocoa files to LGPL 2017-06-24 16:29:22 +02:00
macosx_touchbar.m osx: change license of OSX and cocoa files to LGPL 2017-06-24 16:29:22 +02:00
macosx_versions.h osx: change license of OSX and cocoa files to LGPL 2017-06-24 16:29:22 +02:00
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 osx: fix bundle on macOS High Sierra (10.13) 2017-10-03 11:30:56 +02:00
path-unix.c
path-uwp.c Universal Windows Plaform (UWP) support 2017-06-29 10:36:16 +02:00
path-win.c
path.h Universal Windows Plaform (UWP) support 2017-06-29 10:36:16 +02:00
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 android: posix_spawn(p) replacement 2017-09-22 09:24:19 +02:00
semaphore.h
semaphore_osx.c
strnlen.h
subprocess-dummy.c build: change how some OS specific source files are selected 2017-06-29 10:30:16 +02:00
subprocess-posix.c android: posix_spawn(p) replacement 2017-09-22 09:24:19 +02:00
subprocess-win.c subprocess-win: don't change the mouse cursor in CreateProcess 2017-12-14 21:35:55 +11:00
subprocess.c build: change how some OS specific source files are selected 2017-06-29 10:30:16 +02:00
subprocess.h
terminal-dummy.c build: change how some OS specific source files are selected 2017-06-29 10:30:16 +02:00
terminal-unix.c terminal-unix: fix race condition with tty reset 2017-12-09 21:37:44 +02:00
terminal-win.c terminal: remove unused return value 2017-06-27 18:08:56 +02:00
terminal.h terminal: remove unused return value 2017-06-27 18:08:56 +02:00
threads.c Revert "osdep: NetBSD pthread_setname_np()" 2017-06-22 13:17:40 +02:00
threads.h
timer-darwin.c
timer-linux.c build: remove nanosleep() check 2017-12-02 23:29:40 +01:00
timer-win2.c Universal Windows Plaform (UWP) support 2017-06-29 10:36:16 +02:00
timer.c
timer.h
w32_keyboard.c w32_common: handle media keys 2017-08-05 02:38:44 +10:00
w32_keyboard.h w32_common: handle media keys 2017-08-05 02:38:44 +10:00
win32-console-wrapper.c
windows_utils.c
windows_utils.h