From 0c161d0242f907745cb1e3128451761230a1b545 Mon Sep 17 00:00:00 2001 From: Oleg Romashin Date: Wed, 13 Feb 2013 10:35:35 -0500 Subject: [PATCH] Bug 834323 - Consider to remove hardcoded samplerate from gstreamer pipeline. r=alessandro, f=rillian --- content/media/gstreamer/GStreamerReader.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/content/media/gstreamer/GStreamerReader.cpp b/content/media/gstreamer/GStreamerReader.cpp index 0ae8257c0e5..854127e9c13 100644 --- a/content/media/gstreamer/GStreamerReader.cpp +++ b/content/media/gstreamer/GStreamerReader.cpp @@ -134,16 +134,16 @@ nsresult GStreamerReader::Init(MediaDecoderReader* aCloneDonor) #ifdef MOZ_SAMPLE_TYPE_FLOAT32 "appsink name=audiosink sync=true caps=audio/x-raw-float," #ifdef IS_LITTLE_ENDIAN - "channels={1,2},rate=44100,width=32,endianness=1234", TRUE, NULL); + "channels={1,2},width=32,endianness=1234", TRUE, NULL); #else - "channels={1,2},rate=44100,width=32,endianness=4321", TRUE, NULL); + "channels={1,2},width=32,endianness=4321", TRUE, NULL); #endif #else "appsink name=audiosink sync=true caps=audio/x-raw-int," #ifdef IS_LITTLE_ENDIAN - "channels={1,2},rate=48000,width=16,endianness=1234", TRUE, NULL); + "channels={1,2},width=16,endianness=1234", TRUE, NULL); #else - "channels={1,2},rate=48000,width=16,endianness=4321", TRUE, NULL); + "channels={1,2},width=16,endianness=4321", TRUE, NULL); #endif #endif mAudioAppSink = GST_APP_SINK(gst_bin_get_by_name(GST_BIN(mAudioSink),