summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuenter Bartsch <guenter@users.sourceforge.net>2001-06-05 04:40:53 +0000
committerGuenter Bartsch <guenter@users.sourceforge.net>2001-06-05 04:40:53 +0000
commit8ad79ff4126d2fb8dc86be370744a9feb5f6aae3 (patch)
tree27eafeaebb5e88632bf92b3c8c33e626731e2dc0
parent9423c58a26c411ffef4461c00a5db64f7ea0a263 (diff)
downloadxine-lib-8ad79ff4126d2fb8dc86be370744a9feb5f6aae3.tar.gz
xine-lib-8ad79ff4126d2fb8dc86be370744a9feb5f6aae3.tar.bz2
fixed little bug for buffer underruns
CVS patchset: 125 CVS date: 2001/06/05 04:40:53
-rw-r--r--src/audio_out/audio_oss_out.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/audio_out/audio_oss_out.c b/src/audio_out/audio_oss_out.c
index 258d2f086..114e7a6f4 100644
--- a/src/audio_out/audio_oss_out.c
+++ b/src/audio_out/audio_oss_out.c
@@ -17,7 +17,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*
- * $Id: audio_oss_out.c,v 1.9 2001/06/04 17:19:28 guenter Exp $
+ * $Id: audio_oss_out.c,v 1.10 2001/06/05 04:40:53 guenter Exp $
*/
#ifdef HAVE_CONFIG_H
@@ -286,7 +286,7 @@ static void ao_write_audio_data(ao_functions_t *this_gen,
pos = 0;
if (pos>this->bytes_in_buffer) /* buffer ran dry */
- pos = this->bytes_in_buffer;
+ this->bytes_in_buffer = pos;
buffer_vpts += (this->bytes_in_buffer - pos) * 1024 / this->bytes_per_kpts;