summaryrefslogtreecommitdiffstats
path: root/gst
diff options
context:
space:
mode:
authorYouness Alaoui <youness.alaoui@collabora.co.uk>2008-04-12 23:44:18 +0000
committerEdward Hervey <bilboed@bilboed.com>2009-02-21 17:48:05 +0100
commit7eb75b4f355fe77f68cd1d1ea806e2a18960abde (patch)
tree8e14822ce2533cfeb1273607b114424d44db5759 /gst
parent0eb574f745605ac57192efb44568ae9379e3ee34 (diff)
downloadgst-plugins-bad-7eb75b4f355fe77f68cd1d1ea806e2a18960abde.tar.gz
gst-plugins-bad-7eb75b4f355fe77f68cd1d1ea806e2a18960abde.tar.bz2
gst-plugins-bad-7eb75b4f355fe77f68cd1d1ea806e2a18960abde.zip
[MOVED FROM GST-P-FARSIGHT] Fix byte ordering issues with dtmfsrc and rtpdtmfdepay.. use of G_STRINGIFY to avoid error on MSVC
20080412234418-4f0f6-4828d1613dfcd564afd236dfc8fb57a299092f83.gz
Diffstat (limited to 'gst')
-rw-r--r--gst/dtmf/gstdtmfsrc.c6
-rw-r--r--gst/dtmf/gstrtpdtmfdepay.c4
2 files changed, 3 insertions, 7 deletions
diff --git a/gst/dtmf/gstdtmfsrc.c b/gst/dtmf/gstdtmfsrc.c
index 71e5dbb9..38470a00 100644
--- a/gst/dtmf/gstdtmfsrc.c
+++ b/gst/dtmf/gstdtmfsrc.c
@@ -225,11 +225,7 @@ GST_STATIC_PAD_TEMPLATE ("src",
GST_STATIC_CAPS ("audio/x-raw-int, "
"width = (int) 16, "
"depth = (int) 16, "
-#if G_BYTE_ORDER == G_LITTLE_ENDIAN
- "endianness = (int) 1234, "
-#else
- "endianness = (int) 4321, "
-#endif
+ "endianness = (int) " G_STRINGIFY (G_BYTE_ORDER) ", "
"signed = (bool) true, "
"rate = (int) 8000, "
"channels = (int) 1")
diff --git a/gst/dtmf/gstrtpdtmfdepay.c b/gst/dtmf/gstrtpdtmfdepay.c
index f90978a2..d1096c87 100644
--- a/gst/dtmf/gstrtpdtmfdepay.c
+++ b/gst/dtmf/gstrtpdtmfdepay.c
@@ -125,7 +125,7 @@ GST_STATIC_PAD_TEMPLATE ("src",
GST_STATIC_CAPS ("audio/x-raw-int, "
"width = (int) 16, "
"depth = (int) 16, "
- "endianness = (int) 1234, "
+ "endianness = (int) " G_STRINGIFY (G_BYTE_ORDER) ", "
"signed = (boolean) true, "
"rate = (int) [0, MAX], "
"channels = (int) 1")
@@ -206,7 +206,7 @@ gst_rtp_dtmf_depay_setcaps (GstBaseRTPDepayload * filter, GstCaps * caps)
srccaps = gst_caps_new_simple ("audio/x-raw-int",
"width", G_TYPE_INT, 16,
"depth", G_TYPE_INT, 16,
- "endianness", G_TYPE_INT, 1234,
+ "endianness", G_TYPE_INT, G_BYTE_ORDER,
"signed", G_TYPE_BOOLEAN, TRUE,
"channels", G_TYPE_INT, 1,
"rate", G_TYPE_INT, clock_rate, NULL);