Commit 255cf03a authored by Lukasz Marek's avatar Lukasz Marek

lavd/pulse_audio_dec: implement get_device_list callback

Signed-off-by: 's avatarLukasz Marek <lukasz.m.luki@gmail.com>
parent 85ed32d2
......@@ -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,
};
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment