[vlc-commits] Negotiate input sample rate with PulseAudio
Rémi Denis-Courmont
git at videolan.org
Sat Oct 8 17:17:32 CEST 2011
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sat Oct 8 18:17:16 2011 +0300| [cf5313ad2f99d204eda6ae1441343c423668185a] | committer: Rémi Denis-Courmont
Negotiate input sample rate with PulseAudio
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=cf5313ad2f99d204eda6ae1441343c423668185a
---
modules/access/pulse.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/modules/access/pulse.c b/modules/access/pulse.c
index 197f8f6..a0760d8 100644
--- a/modules/access/pulse.c
+++ b/modules/access/pulse.c
@@ -262,8 +262,8 @@ static int Open(vlc_object_t *obj)
const pa_stream_flags_t flags = PA_STREAM_INTERPOLATE_TIMING
| PA_STREAM_AUTO_TIMING_UPDATE
| PA_STREAM_FIX_FORMAT
- /*| PA_STREAM_FIX_RATE
- | PA_STREAM_FIX_CHANNELS*/;
+ | PA_STREAM_FIX_RATE
+ /*| PA_STREAM_FIX_CHANNELS*/;
const struct pa_buffer_attr attr = {
.maxlength = -1,
.fragsize = pa_usec_to_bytes(sys->caching, &ss) / 2,
@@ -313,10 +313,10 @@ static int Open(vlc_object_t *obj)
fmt.audio.i_physical_channels = fmt.audio.i_original_channels =
AOUT_CHAN_LEFT | AOUT_CHAN_RIGHT;
fmt.audio.i_channels = ss.channels;
- fmt.audio.i_rate = ss.rate;
+ fmt.audio.i_rate = pss->rate;
fmt.audio.i_bitspersample = aout_BitsPerSample(format);
fmt.audio.i_blockalign = fmt.audio.i_bitspersample * ss.channels / 8;
- fmt.i_bitrate = fmt.audio.i_bitspersample * ss.channels * ss.rate;
+ fmt.i_bitrate = fmt.audio.i_bitspersample * ss.channels * pss->rate;
sys->framesize = fmt.audio.i_blockalign;
sys->es = es_out_Add (demux->out, &fmt);
More information about the vlc-commits
mailing list