summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSjoerd Simons <sjoerd@luon.net>2008-02-16 13:41:40 +0000
committerEdward Hervey <bilboed@bilboed.com>2009-02-21 17:48:04 +0100
commitc40557df720cad6d6902f44cf9538d26c53cfce5 (patch)
tree591a27a033473e9c40a43cd0a459480d80e38230
parent37f9c1efdb9d1781c6f08b20bebad3f38e7e2429 (diff)
downloadgst-plugins-bad-c40557df720cad6d6902f44cf9538d26c53cfce5.tar.gz
gst-plugins-bad-c40557df720cad6d6902f44cf9538d26c53cfce5.tar.bz2
gst-plugins-bad-c40557df720cad6d6902f44cf9538d26c53cfce5.zip
[MOVED FROM GST-P-FARSIGHT] dtmfsrc: Correctly set the endianess in the caps to the machines endianess
20080216134140-93b9a-40a3a9d7ac1679c5e0dfd24a6b91e4aba6cc6496.gz
-rw-r--r--gst/dtmf/gstdtmfsrc.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gst/dtmf/gstdtmfsrc.c b/gst/dtmf/gstdtmfsrc.c
index e0a73dd1..444a79df 100644
--- a/gst/dtmf/gstdtmfsrc.c
+++ b/gst/dtmf/gstdtmfsrc.c
@@ -225,7 +225,11 @@ 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
"signed = (bool) true, "
"rate = (int) 8000, "
"channels = (int) 1")