mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-22 17:51:16 +00:00
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: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/926>
This commit is contained in:
parent
18378ec8c7
commit
43ed0df54c
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue