[FFmpeg-devel] [PATCH 2/2] opts: add list device sources/sinks options
Michael Niedermayer
michaelni at gmx.at
Sun Oct 19 00:20:41 CEST 2014
On Sat, Oct 18, 2014 at 08:25:30PM +0200, Lukasz Marek wrote:
> Allows to list sources/sinks of the devices that implement
> that functionality.
>
> Signed-off-by: Lukasz Marek <lukasz.m.luki2 at gmail.com>
[...]
> +int show_sinks(void *optctx, const char *opt, const char *arg)
> +{
> +#if CONFIG_AVDEVICE
> + AVOutputFormat *fmt = NULL;
> + char *dev = NULL;
> + AVDictionary *opts = NULL;
> + int ret = 0;
> + int error_level = av_log_get_level();
> +
> + av_log_set_level(AV_LOG_ERROR);
> +
> + if ((ret = show_sinks_sources_parse_arg(arg, &dev, &opts)) < 0)
> + goto fail;
> +
> + do {
> + fmt = av_output_audio_device_next(fmt);
av_* functions are not exported from libavdevice
see libavdevice/libavdevice.v
[...]
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
In fact, the RIAA has been known to suggest that students drop out
of college or go to community college in order to be able to afford
settlements. -- The RIAA
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20141019/e5a6a788/attachment.asc>
More information about the ffmpeg-devel
mailing list