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
io.h
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
macosx_events.h
macosx_events.m all: replace mpv_detach_destroy() with mpv_destroy() 2018-03-15 00:00:04 -07:00
macosx_events_objc.h
macosx_menubar.h
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
path-macosx.m
path-unix.c
path-uwp.c
path-win.c
path.h
polldev.c
polldev.h
posix-spawn.h
semaphore.h
semaphore_osx.c
strnlen.h
subprocess-dummy.c
subprocess-posix.c
subprocess-win.c
subprocess.c
subprocess.h
terminal-dummy.c
terminal-unix.c
terminal-win.c
terminal.h
threads.c
threads.h
timer-darwin.c
timer-linux.c
timer-win2.c
timer.c
timer.h
w32_keyboard.c
w32_keyboard.h
win32-console-wrapper.c
windows_utils.c
windows_utils.h