Bug 834323 - Consider to remove hardcoded samplerate from gstreamer pipeline. r=alessandro, f=rillian

This commit is contained in:
Oleg Romashin 2013-02-13 10:35:35 -05:00
parent 65e705c863
commit 0c161d0242

View File

@ -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),