summaryrefslogtreecommitdiffstats
path: root/demux/matroska.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-02-12 17:00:52 +0100
committerwm4 <wm4@nowhere>2015-02-12 17:18:43 +0100
commite01750020dcc9d49e6f32d513f1b40cd30148d91 (patch)
treeaf94cd563feab2068d041e44b466fffd32d2765d /demux/matroska.h
parentf061befb3338c5cd6837701b4232dad48340ab6c (diff)
downloadmpv-e01750020dcc9d49e6f32d513f1b40cd30148d91.tar.bz2
mpv-e01750020dcc9d49e6f32d513f1b40cd30148d91.tar.xz
ao_pulse: listen for hotplug events
This requires jumping through multiple hoops on fire. Since the PulseAudio API is virtually undocumented, I'm not sure if this is correct either. We only react to sink events, and only to the NEW/REMOVE events. CHANGE events are ignored, because PulseAudio fires them far too often - even if the system is completely idle! If pa_sink_info.name can change, we're in trouble. pa_sink_info.description is not so important, but it'd also be a bit un-nice if it can change, and we don't update it. The weird way how the actual AO and the hotplug context share the same struct (ao) comes in handy here, although context_success_cb() still had to be duplicated from success_cb() - the unused argument has a different type.
Diffstat (limited to 'demux/matroska.h')
0 files changed, 0 insertions, 0 deletions