[MOVED FROM GST-P-FARSIGHT] dtmfsrc: Correctly set the endianess in the caps to the...
authorSjoerd Simons <sjoerd@luon.net>
Sat, 16 Feb 2008 13:41:40 +0000 (13:41 +0000)
committerEdward Hervey <bilboed@bilboed.com>
Sat, 21 Feb 2009 16:48:04 +0000 (17:48 +0100)
20080216134140-93b9a-40a3a9d7ac1679c5e0dfd24a6b91e4aba6cc6496.gz

gst/dtmf/gstdtmfsrc.c

index e0a73dd..444a79d 100644 (file)
@@ -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")