diff options
author | Lukasz Marek <lukasz.m.luki@gmail.com> | 2014-02-25 01:04:15 +0100 |
---|---|---|
committer | Lukasz Marek <lukasz.m.luki@gmail.com> | 2014-03-29 09:54:16 +0100 |
commit | 3937b40e87c92993df6c62492c59f59cbeb97126 (patch) | |
tree | db23aed295fa5f98193b7b48e9c94ec867e27eb8 /libavdevice | |
parent | 255cf03af81ee684890a83c1ddd813e0fcc9d0ad (diff) | |
download | ffmpeg-3937b40e87c92993df6c62492c59f59cbeb97126.tar.gz |
lavd/pulse_audio_enc: implement get_device_list callback
Signed-off-by: Lukasz Marek <lukasz.m.luki@gmail.com>
Diffstat (limited to 'libavdevice')
-rw-r--r-- | libavdevice/pulse_audio_enc.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libavdevice/pulse_audio_enc.c b/libavdevice/pulse_audio_enc.c index 03f713cb15..fa2a7cb0c5 100644 --- a/libavdevice/pulse_audio_enc.c +++ b/libavdevice/pulse_audio_enc.c @@ -167,6 +167,12 @@ static void pulse_get_output_timestamp(AVFormatContext *h, int stream, int64_t * *dts = s->timestamp - latency; } +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, 1); +} + #define OFFSET(a) offsetof(PulseData, a) #define E AV_OPT_FLAG_ENCODING_PARAM @@ -199,6 +205,7 @@ AVOutputFormat ff_pulse_muxer = { .write_uncoded_frame = pulse_write_frame, .write_trailer = pulse_write_trailer, .get_output_timestamp = pulse_get_output_timestamp, + .get_device_list = pulse_get_device_list, .flags = AVFMT_NOFILE | AVFMT_ALLOW_FLUSH, .priv_class = &pulse_muxer_class, }; |