musepack: Switch to GST_AUDIO_NE()
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/8984>
This commit is contained in:
parent
19e35473f0
commit
a9f5362ff7
@ -25,6 +25,7 @@
|
||||
|
||||
#include "gstmusepackdec.h"
|
||||
#include "gstmusepackreader.h"
|
||||
#include <gst/audio/audio.h>
|
||||
|
||||
GST_DEBUG_CATEGORY (musepackdec_debug);
|
||||
#define GST_CAT_DEFAULT musepackdec_debug
|
||||
@ -36,17 +37,9 @@ static GstStaticPadTemplate sink_template = GST_STATIC_PAD_TEMPLATE ("sink",
|
||||
);
|
||||
|
||||
#ifdef MPC_FIXED_POINT
|
||||
# if G_BYTE_ORDER == G_LITTLE_ENDIAN
|
||||
# define GST_MPC_FORMAT "S32LE"
|
||||
# else
|
||||
# define GST_MPC_FORMAT "S32BE"
|
||||
# endif
|
||||
# define GST_MPC_FORMAT GST_AUDIO_NE (S32)
|
||||
#else
|
||||
# if G_BYTE_ORDER == G_LITTLE_ENDIAN
|
||||
# define GST_MPC_FORMAT "F32LE"
|
||||
# else
|
||||
# define GST_MPC_FORMAT "F32BE"
|
||||
# endif
|
||||
# define GST_MPC_FORMAT GST_AUDIO_NE (F32)
|
||||
#endif
|
||||
|
||||
static GstStaticPadTemplate src_template = GST_STATIC_PAD_TEMPLATE ("src",
|
||||
|
Loading…
x
Reference in New Issue
Block a user