diff options
author | Lukasz Marek <lukasz.m.luki@gmail.com> | 2014-02-25 01:04:02 +0100 |
---|---|---|
committer | Lukasz Marek <lukasz.m.luki@gmail.com> | 2014-03-29 09:54:09 +0100 |
commit | 255cf03af81ee684890a83c1ddd813e0fcc9d0ad (patch) | |
tree | 5f9110dc24e87fb1dcad95808b8520fa2e43035b /libavdevice/pulse_audio_dec.c | |
parent | 85ed32d2ed15888052a4f55d878f7cfb192d0e0d (diff) | |
download | ffmpeg-255cf03af81ee684890a83c1ddd813e0fcc9d0ad.tar.gz |
lavd/pulse_audio_dec: implement get_device_list callback
Signed-off-by: Lukasz Marek <lukasz.m.luki@gmail.com>
Diffstat (limited to 'libavdevice/pulse_audio_dec.c')
-rw-r--r-- | libavdevice/pulse_audio_dec.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libavdevice/pulse_audio_dec.c b/libavdevice/pulse_audio_dec.c index 49d6f7e7c7..ec94fe1b4a 100644 --- a/libavdevice/pulse_audio_dec.c +++ b/libavdevice/pulse_audio_dec.c @@ -147,6 +147,12 @@ static av_cold int pulse_close(AVFormatContext *s) return 0; } +static int pulse_get_device_list(AVFormatContext *h, AVDeviceInfoList *device_list) +{ + PulseData *s = h->priv_data; + return ff_pulse_audio_get_devices(device_list, s->server, 0); +} + #define OFFSET(a) offsetof(PulseData, a) #define D AV_OPT_FLAG_DECODING_PARAM @@ -176,6 +182,7 @@ AVInputFormat ff_pulse_demuxer = { .read_header = pulse_read_header, .read_packet = pulse_read_packet, .read_close = pulse_close, + .get_device_list = pulse_get_device_list, .flags = AVFMT_NOFILE, .priv_class = &pulse_demuxer_class, }; |