Mercurial > mplayer.hg
view gui/mplayer/gmplayer.h @ 24590:2c238fa777ff
ao_alsa: Fix get_space() return values larger than buffersize
After a buffer underrun the ALSA get_space() function sometimes returned
values larger than the ao had set in ao_data.buffersize. Fix this by
replacing the old check against MAX_OUTBURST by one against
ao_data.buffersize. There should be no need for the MAX_OUTBURST check;
the current MPlayer side should no longer have any constant limit on the
amount of data an ao can buffer or request at once.
The get_space() values larger than ao_data.buffersize triggered errors
in audio decoding causing the current attempt to fill audio buffers to
be aborted. I'm not sure how often that caused behavior noticeably worse
then an underrun already is.
author | uau |
---|---|
date | Mon, 24 Sep 2007 21:49:58 +0000 |
parents | 1cb14b091f46 |
children | 3baf6a2283da |
line wrap: on
line source
#ifndef GUI_GMPLAYER_H #define GUI_GMPLAYER_H extern int mplSubRender; extern int mplMainRender; extern unsigned char * mplDrawBuffer; extern unsigned char * mplMenuDrawBuffer; extern int mainVisible; extern int mplMainAutoPlay; extern int mplMiddleMenu; extern void mplInit( void * disp ); extern void mplMainDraw( void ); extern void mplEventHandling( int msg,float param ); extern void mplMainMouseHandle( int Button,int X,int Y,int RX,int RY ); extern void mplMainKeyHandle( int KeyCode,int Type,int Key ); extern void mplDandDHandler(int num,char** files); extern void mplSubDraw( void ); extern void mplSubMouseHandle( int Button,int X,int Y,int RX,int RY ); extern void mplMenuInit( void ); extern void mplHideMenu( int mx,int my,int w ); extern void mplShowMenu( int mx,int my ); extern void mplMenuMouseHandle( int X,int Y,int RX,int RY ); extern void mplPBInit( void ); extern void mplPBShow( int x, int y ); #endif