lavd/pulse_audio_dec: implement get_device_list callback
Signed-off-by: Lukasz Marek <lukasz.m.luki@gmail.com>
This commit is contained in:
parent
85ed32d2ed
commit
255cf03af8
@ -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,
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user