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

Lukasz Marek lukasz.m.luki2 at gmail.com
Sat Oct 18 20:24:31 CEST 2014


On 13.08.2014 16:00, Michael Niedermayer wrote:
> 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

Sorry for long delay.
I reworked a patch a bit, sending in new thread.



More information about the ffmpeg-devel mailing list