lavd/pulse_audio_dec: implement get_device_list callback

Signed-off-by: Lukasz Marek <lukasz.m.luki@gmail.com>
pull/64/head
Lukasz Marek 11 years ago
parent 85ed32d2ed
commit 255cf03af8
  1. 7
      libavdevice/pulse_audio_dec.c

@ -147,6 +147,12 @@ static av_cold int pulse_close(AVFormatContext *s)
return 0; 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 OFFSET(a) offsetof(PulseData, a)
#define D AV_OPT_FLAG_DECODING_PARAM #define D AV_OPT_FLAG_DECODING_PARAM
@ -176,6 +182,7 @@ AVInputFormat ff_pulse_demuxer = {
.read_header = pulse_read_header, .read_header = pulse_read_header,
.read_packet = pulse_read_packet, .read_packet = pulse_read_packet,
.read_close = pulse_close, .read_close = pulse_close,
.get_device_list = pulse_get_device_list,
.flags = AVFMT_NOFILE, .flags = AVFMT_NOFILE,
.priv_class = &pulse_demuxer_class, .priv_class = &pulse_demuxer_class,
}; };

Loading…
Cancel
Save