[FFmpeg-devel] [PATCH 26/35] avdevice: Add internal helpers for querying device capabilities

Michael Niedermayer michael at niedermayer.cc
Tue Jun 8 16:30:16 EEST 2021


On Tue, Jun 08, 2021 at 01:04:05AM +0200, Diederick Niehorster wrote:
> Signed-off-by: Diederick Niehorster <dcnieho at gmail.com>
> ---
>  libavdevice/internal.h | 31 +++++++++++++++++++++++++++
>  libavdevice/utils.c    | 48 ++++++++++++++++++++++++++++++++++++++++++
>  libavdevice/version.h  |  2 +-
>  3 files changed, 80 insertions(+), 1 deletion(-)

brakes build
CC	libavdevice/utils.o
libavdevice/utils.c:64:29: error: field ‘query_type’ has incomplete type
     enum DshowCapQueryType  query_type;
                             ^~~~~~~~~~
libavdevice/utils.c: In function ‘ff_device_get_query_type’:
libavdevice/utils.c:86:20: error: incompatible types when returning type ‘const AVDeviceCapabilitiesQueryTypeEntry * {aka const struct AVDeviceCapabilitiesQueryTypeEntry *}’ but ‘enum AVDeviceCapabilitiesQueryType’ was expected
             return query_table[i].query_type;
                    ^~~~~~~~~~~
libavdevice/utils.c: In function ‘ff_device_get_query_component_name’:
libavdevice/utils.c:101:43: warning: comparison between pointer and integer
             if (query_table[i].query_type == query_type)
                                           ^~
ffbuild/common.mak:67: recipe for target 'libavdevice/utils.o' failed
make: *** [libavdevice/utils.o] Error 1

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

Dictatorship naturally arises out of democracy, and the most aggravated
form of tyranny and slavery out of the most extreme liberty. -- Plato
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20210608/c2bb23a6/attachment.sig>


More information about the ffmpeg-devel mailing list