[rygel-gst-0-10-media-engine] Fix LPCM transcoder caps



commit 2d33a5f92fd224e35e6997202f0eb793182002c9
Author: Jens Georg <jensg openismus com>
Date:   Wed Feb 13 14:45:28 2013 +0100

    Fix LPCM transcoder caps

 src/rygel-l16-transcoder.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/src/rygel-l16-transcoder.c b/src/rygel-l16-transcoder.c
index 16f81f2..f886e1d 100644
--- a/src/rygel-l16-transcoder.c
+++ b/src/rygel-l16-transcoder.c
@@ -26,11 +26,12 @@ G_DEFINE_TYPE (RygelL16Transcoder, rygel_l16_transcoder, RYGEL_TYPE_AUDIO_TRANSC
 #define RYGEL_L16_TRANSCODER_WIDTH 16
 #define RYGEL_L16_TRANSCODER_DEPTH 16
 #define RYGEL_L16_TRANSCODER_SIGNED true
-#define RYGEL_L16_TRANSCODER_ENDIANNESS ((gint) G_BIG_ENDIAN)
+#define RYGEL_L16_TRANSCODER_ENDIANNESS G_BIG_ENDIAN
 #define RYGEL_L16_MIME_TYPE "audio/L" G_STRINGIFY (RYGEL_L16_TRANSCODER_WIDTH) \
                             ";rate=" G_STRINGIFY (RYGEL_L16_TRANSCODER_FREQUENCY) \
                             ";channels=" G_STRINGIFY (RYGEL_L16_TRANSCODER_CHANNELS)
-#define RYGEL_L16_AUDIO_CAPS "audio/format=S16BE" \
+#define RYGEL_L16_AUDIO_CAPS "audio/x-raw-int" \
+                             ",channels=" G_STRINGIFY (RYGEL_L16_TRANSCODER_CHANNELS) \
                              ",rate=" G_STRINGIFY (RYGEL_L16_TRANSCODER_FREQUENCY) \
                              ",width=" G_STRINGIFY (RYGEL_L16_TRANSCODER_WIDTH) \
                              ",depth=" G_STRINGIFY (RYGEL_L16_TRANSCODER_DEPTH) \


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]