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: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/4966>
This commit is contained in:
Sebastian Dröge 2023-07-05 09:23:36 +03:00 committed by GStreamer Marge Bot
parent 030bf5e560
commit 6b47a37ed8

View file

@ -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,