diff options
author | wm4 <wm4@nowhere> | 2018-04-29 19:42:18 +0200 |
---|---|---|
committer | Jan Ekström <jeebjp@gmail.com> | 2018-05-03 01:08:44 +0300 |
commit | 0ab3184526e7b9b95c06a3ec7a6674283a5922d0 (patch) | |
tree | 4c05b192e65b51c68f3024b4b7946dcb79caf404 /audio/out/ao.h | |
parent | 958053ff56109a38e9f8e0a0aa8786a5f47adb7c (diff) | |
download | mpv-0ab3184526e7b9b95c06a3ec7a6674283a5922d0.tar.bz2 mpv-0ab3184526e7b9b95c06a3ec7a6674283a5922d0.tar.xz |
encode: get rid of the output packet queue
Until recently, ao_lavc and vo_lavc started encoding whenever the core
happened to send them data. Since audio and video are not initialized at
the same time, and the muxer was not necessarily opened when the first
encoder started to produce data, the resulting packets were put into a
queue. As soon as the muxer was opened, the queue was flushed.
Change this to make the core wait with sending data until all encoders
are initialized. This has the advantage that we don't need to queue up
the packets.
Diffstat (limited to 'audio/out/ao.h')
-rw-r--r-- | audio/out/ao.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/audio/out/ao.h b/audio/out/ao.h index b9df4ebb00..99a3d0fae0 100644 --- a/audio/out/ao.h +++ b/audio/out/ao.h @@ -48,6 +48,7 @@ enum aocontrol { enum { AO_EVENT_RELOAD = 1, AO_EVENT_HOTPLUG = 2, + AO_EVENT_INITIAL_UNBLOCK = 4, }; enum { @@ -104,6 +105,8 @@ void ao_resume(struct ao *ao); void ao_drain(struct ao *ao); bool ao_eof_reached(struct ao *ao); int ao_query_and_reset_events(struct ao *ao, int events); +void ao_add_events(struct ao *ao, int events); +void ao_unblock(struct ao *ao); void ao_request_reload(struct ao *ao); void ao_hotplug_event(struct ao *ao); |