diff options
author | Rafał Mużyło <galtgendo@o2.pl> | 2014-02-04 13:43:56 +0100 |
---|---|---|
committer | Sebastian Dröge <sebastian@centricular.com> | 2014-02-04 13:44:29 +0100 |
commit | ac4df5e2c543acf1834cbaa5534012365b1d4d34 (patch) | |
tree | 7e4bdc65b2b4e51c4beb50faace77df4b52e558d /ext | |
parent | 90b01fce6156359b0787172b380f51cb63c15c98 (diff) |
gst: Don't use endianness-specific S8 audio format
It does not exist.
https://bugzilla.gnome.org/show_bug.cgi?id=723331
Diffstat (limited to 'ext')
-rw-r--r-- | ext/flac/gstflacdec.c | 4 | ||||
-rw-r--r-- | ext/flac/gstflacenc.c | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/ext/flac/gstflacdec.c b/ext/flac/gstflacdec.c index 4a4bdd6e9..10f452794 100644 --- a/ext/flac/gstflacdec.c +++ b/ext/flac/gstflacdec.c @@ -115,9 +115,9 @@ static GstFlowReturn gst_flac_dec_handle_frame (GstAudioDecoder * audio_dec, G_DEFINE_TYPE (GstFlacDec, gst_flac_dec, GST_TYPE_AUDIO_DECODER); #if G_BYTE_ORDER == G_LITTLE_ENDIAN -#define FORMATS "{ S8LE, S16LE, S24_32LE, S32LE } " +#define FORMATS "{ S8, S16LE, S24_32LE, S32LE } " #else -#define FORMATS "{ S8BE, S16BE, S24_32BE, S32BE } " +#define FORMATS "{ S8, S16BE, S24_32BE, S32BE } " #endif #define GST_FLAC_DEC_SRC_CAPS \ diff --git a/ext/flac/gstflacenc.c b/ext/flac/gstflacenc.c index e71e5cd2a..e789295df 100644 --- a/ext/flac/gstflacenc.c +++ b/ext/flac/gstflacenc.c @@ -98,9 +98,9 @@ static const GstAudioChannelPosition channel_positions[8][8] = { }; #if G_BYTE_ORDER == G_LITTLE_ENDIAN -#define FORMATS "{ S8LE, S16LE, S24LE, S24_32LE } " +#define FORMATS "{ S8, S16LE, S24LE, S24_32LE } " #else -#define FORMATS "{ S8BE, S16BE, S24BE, S24_32BE } " +#define FORMATS "{ S8, S16BE, S24BE, S24_32BE } " #endif #define FLAC_SINK_CAPS \ @@ -734,7 +734,7 @@ gst_flac_enc_getcaps (GstAudioEncoder * enc, GstCaps * filter) g_value_init (&v_list, GST_TYPE_LIST); g_value_init (&v, G_TYPE_STRING); - g_value_set_static_string (&v, GST_AUDIO_NE (S8)); + g_value_set_static_string (&v, "S8"); gst_value_list_append_value (&v_list, &v); g_value_set_static_string (&v, GST_AUDIO_NE (S16)); gst_value_list_append_value (&v_list, &v); |