summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean-Yves Avenard <jyavenard@mythtv.org>2010-12-10 12:43:59 (GMT)
committer Jean-Yves Avenard <jyavenard@mythtv.org>2010-12-13 11:56:16 (GMT)
commit4e4653fa63833b76092c1c956827348472799a2c (patch)
treebcd16f9378064c365e862b28dc794089ec065925
parent0d719aa54df4e04fa6ffbfe2f6bfd2a7a60c7c00 (diff)
One change got committed by mistake
-rw-r--r--mythtv/libs/libmyth/audiooutputalsa.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/mythtv/libs/libmyth/audiooutputalsa.cpp b/mythtv/libs/libmyth/audiooutputalsa.cpp
index 73ed0a8..f1eb2eb 100644
--- a/mythtv/libs/libmyth/audiooutputalsa.cpp
+++ b/mythtv/libs/libmyth/audiooutputalsa.cpp
@@ -684,7 +684,7 @@ int AudioOutputALSA::SetParameters(snd_pcm_t *handle, snd_pcm_format_t format,
/* set member variables */
soundcard_buffer_size = buffer_size * output_bytes_per_frame;
- fragment_size = (period_size * output_bytes_per_frame);
+ fragment_size = (period_size * output_bytes_per_frame) >> 1;
/* get the current swparams */
err = snd_pcm_sw_params_current(handle, swparams);