1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
commit 8fc8b74
Author: Oleg Romashin <oleg.romashin@nokia.com>
Date: Wed Jul 18 22:46:11 2012 -0400
Bug 775257 - Gstreamer backend on Meego N9 produce extra noise in audio playback.r=giles
---
content/media/gstreamer/nsGStreamerReader.cpp | 5 +++++
1 file changed, 5 insertions(+)
diff --git mozilla/content/media/gstreamer/nsGStreamerReader.cpp mozilla/content/media/gstreamer/nsGStreamerReader.cpp
index c48f92e..0fb801a 100644
--- mozilla/content/media/gstreamer/nsGStreamerReader.cpp
+++ mozilla/content/media/gstreamer/nsGStreamerReader.cpp
@@ -130,8 +130,13 @@ nsresult nsGStreamerReader::Init(nsBuiltinDecoderReader* aCloneDonor)
gst_object_unref(sinkpad);
mAudioSink = gst_parse_bin_from_description("capsfilter name=filter ! "
+#ifndef MOZ_TREMOR
"appsink name=audiosink sync=true caps=audio/x-raw-float,"
"channels={1,2},rate=44100,width=32,endianness=1234", TRUE, NULL);
+#else
+ "appsink name=audiosink sync=true caps=audio/x-raw-int,"
+ "channels={1,2},rate=48000,width=16,endianness=1234", TRUE, NULL);
+#endif
mAudioAppSink = GST_APP_SINK(gst_bin_get_by_name(GST_BIN(mAudioSink),
"audiosink"));
gst_app_sink_set_callbacks(mAudioAppSink, &mSinkCallbacks,
|