Josh de Kock (2018-03-22):
>  I have -ffunroll'd the macros for you Nicolas.

That is not what I asked. The macros were just a way of making the poor
API a little less poor, but the problem still remains:

> +#ifdef CONFIG_AVDEVICE
> +        opaque = 0;
> +        if (muxdemuxers != SHOW_DEMUXERS) {
> +            while ((ofmt = av_outdev_iterate(&opaque))) {
> +                if ((!name || strcmp(ofmt-> name, name) < 0) && 
> strcmp(ofmt-> name, last_name) > 0) {
> +                    name = ofmt - > name;
> +                    long_name = ofmt - > long_name;
> +                    is_ofmt = 1;
>                  }
> -                if (name && strcmp(ifmt->name, name) == 0)
> -                    decode = 1;
>              }
>          }
> +
> +        opaque = 0;
> +        if (muxdemuxers != SHOW_MUXERS) {
> +            while ((ifmt = av_indev_iterate(&opaque))) {
> +                if ((!name || strcmp(ifmt-> name, name) < 0) && 
> strcmp(ifmt-> name, last_name) > 0) {
> +                    name = ifmt - > name;
> +                    long_name = ifmt - > long_name;
> +                    is_ifmt = 1;
> +                }
> +            }
> +        }
> +#endif

There is a separate loop for devices, and I strongly oppose to that. Fix
your API so that all (de)muxer-like components are returned in a single
loop.

Regards,

-- 
  Nicolas George

Attachment: signature.asc
Description: Digital signature

_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-devel

Reply via email to