[FFmpeg-devel] [PATCH 3/3] opts: add list device sources/sinks options

Michael Niedermayer michaelni at gmx.at
Wed Aug 13 16:00:14 CEST 2014


On Thu, Aug 07, 2014 at 01:58:57AM +0200, Lukasz Marek wrote:
> Allows to list sources/sinks of the devices that implement
> that functionality.
>

[...]
> +int show_sinks(void *optctx, const char *opt, const char *arg)
> +{
> +#if CONFIG_AVDEVICE
> +    AVDeviceInfoList *device_list = NULL;
> +    AVFormatContext *dev = NULL;
> +    AVOutputFormat *fmt;
> +    int ret, i;
> +
> +    if (!arg) {
> +        printf("Device name is missing.\n");
> +        return AVERROR(EINVAL);
> +    }

shouldnt a plain "-sinks" list all available sinks ?
similar for sources

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Old school: Use the lowest level language in which you can solve the problem
            conveniently.
New school: Use the highest level language in which the latest supercomputer
            can solve the problem without the user falling asleep waiting.
-------------- 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/20140813/af8b4c90/attachment.asc>


More information about the ffmpeg-devel mailing list