mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 834323 - Consider to remove hardcoded samplerate from gstreamer pipeline. r=alessandro, f=rillian
This commit is contained in:
parent
65e705c863
commit
0c161d0242
@ -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),
|
||||
|
Loading…
Reference in New Issue
Block a user