From: Andoni Morales Alastruey Date: Tue, 8 May 2012 14:23:42 +0000 (+0200) Subject: directsoundsink: force 48000 kHz force AC-3 over spdif X-Git-Tag: RELEASE-0.11.93~135 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e815d083429b1ff95912e296c972ef5f9ec2c8a4;p=platform%2Fupstream%2Fgst-plugins-good.git directsoundsink: force 48000 kHz force AC-3 over spdif --- diff --git a/sys/directsound/gstdirectsoundsink.c b/sys/directsound/gstdirectsoundsink.c index fae5fa0..df56c65 100644 --- a/sys/directsound/gstdirectsoundsink.c +++ b/sys/directsound/gstdirectsoundsink.c @@ -440,7 +440,7 @@ gst_directsound_sink_prepare (GstAudioSink * asink, wfx.cbSize = 0; wfx.wFormatTag = WAVE_FORMAT_DOLBY_AC3_SPDIF; wfx.nChannels = 2; - wfx.nSamplesPerSec = spec->info.rate; + wfx.nSamplesPerSec = 48000; wfx.wBitsPerSample = 16; wfx.nBlockAlign = wfx.wBitsPerSample / 8 * wfx.nChannels; wfx.nAvgBytesPerSec = wfx.nSamplesPerSec * wfx.nBlockAlign;