[FFmpeg-cvslog] lavd/pulse_audio_enc: implement get_device_list callback
Lukasz Marek
git at videolan.org
Sat Mar 29 17:13:09 CET 2014
ffmpeg | branch: master | Lukasz Marek <lukasz.m.luki at gmail.com> | Tue Feb 25 01:04:15 2014 +0100| [3937b40e87c92993df6c62492c59f59cbeb97126] | committer: Lukasz Marek
lavd/pulse_audio_enc: implement get_device_list callback
Signed-off-by: Lukasz Marek <lukasz.m.luki at gmail.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=3937b40e87c92993df6c62492c59f59cbeb97126
---
libavdevice/pulse_audio_enc.c | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/libavdevice/pulse_audio_enc.c b/libavdevice/pulse_audio_enc.c
index 03f713c..fa2a7cb 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,
};
More information about the ffmpeg-cvslog
mailing list