From 6b47a37ed822a3695893b0c5793175bd9ce25b40 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Wed, 5 Jul 2023 09:23:36 +0300 Subject: [PATCH] audio: Change value of GST_DSD_FORMAT_UNKNOWN to 0 GObject and calloc() etc are initializing memory to 0, so using 0 as the unknown variant makes it more likely that mistakingly zero-initialized memory does not end up with a wrong DSD format. Part-of: --- .../gst-plugins-base/gst-libs/gst/audio/gstdsdformat.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/subprojects/gst-plugins-base/gst-libs/gst/audio/gstdsdformat.h b/subprojects/gst-plugins-base/gst-libs/gst/audio/gstdsdformat.h index 93f6b22754..d8ba4cbca2 100644 --- a/subprojects/gst-plugins-base/gst-libs/gst/audio/gstdsdformat.h +++ b/subprojects/gst-plugins-base/gst-libs/gst/audio/gstdsdformat.h @@ -47,8 +47,8 @@ G_BEGIN_DECLS * Since: 1.24 */ typedef enum { - GST_DSD_FORMAT_UNKNOWN = -1, - GST_DSD_FORMAT_U8 = 0, + GST_DSD_FORMAT_UNKNOWN = 0, + GST_DSD_FORMAT_U8, GST_DSD_FORMAT_U16LE, GST_DSD_FORMAT_U16BE, GST_DSD_FORMAT_U32LE,