From 43ed0df54c62454587f02ee8f10c72b8cd8ab4fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim-Philipp=20M=C3=BCller?= Date: Sun, 26 Sep 2021 01:52:12 +0100 Subject: [PATCH] audio: make GST_AUDIO_INFO_IS_UNPOSITIONED return a boolean Luckily this worked right since the flag we check is the only flag and its vale is 1, but feels more correct to actually check for non-zeroness. Spotted by Stirling Westrup. Part-of: --- subprojects/gst-plugins-base/gst-libs/gst/audio/audio-info.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subprojects/gst-plugins-base/gst-libs/gst/audio/audio-info.h b/subprojects/gst-plugins-base/gst-libs/gst/audio/audio-info.h index cc9e972220..8cc6d36f16 100644 --- a/subprojects/gst-plugins-base/gst-libs/gst/audio/audio-info.h +++ b/subprojects/gst-plugins-base/gst-libs/gst/audio/audio-info.h @@ -93,7 +93,7 @@ GType gst_audio_info_get_type (void); #define GST_AUDIO_INFO_IS_BIG_ENDIAN(i) (GST_AUDIO_FORMAT_INFO_IS_BIG_ENDIAN((i)->finfo)) #define GST_AUDIO_INFO_FLAGS(info) ((info)->flags) -#define GST_AUDIO_INFO_IS_UNPOSITIONED(info) ((info)->flags & GST_AUDIO_FLAG_UNPOSITIONED) +#define GST_AUDIO_INFO_IS_UNPOSITIONED(info) (((info)->flags & GST_AUDIO_FLAG_UNPOSITIONED) != 0) #define GST_AUDIO_INFO_LAYOUT(info) ((info)->layout) #define GST_AUDIO_INFO_RATE(info) ((info)->rate)