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

Lukasz Marek lukasz.m.luki2 at gmail.com
Tue Oct 21 23:04:45 CEST 2014


On 19.10.2014 00:20, Michael Niedermayer wrote:
> 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

It is fixed now, do you have any other comments?



More information about the ffmpeg-devel mailing list