Mercurial > mplayer.hg
view gui/mplayer/gui_common.h @ 26089:e2f35d90ad39
Set audio->sh correctly when switching audio tracks. The same for video tracks.
Demuxers almost never update audio->sh or sub->sh when swithing tracks. It is
especially bad when switching to no sound, and results in "too many audio
packets" error.
author | eugeni |
---|---|
date | Fri, 29 Feb 2008 17:25:48 +0000 |
parents | 4129c8cfa742 |
children | 10dfbc523184 |
line wrap: on
line source
#ifndef MPLAYER_GUI_GUI_COMMON_H #define MPLAYER_GUI_GUI_COMMON_H #include <stdlib.h> #include <stdio.h> #include <inttypes.h> #include <sys/stat.h> #include <unistd.h> #include "app.h" #include "bitmap.h" #include "wm/ws.h" extern inline void TranslateFilename( int c,char * tmp ); extern char * Translate( char * str ); extern void PutImage( txSample * bf,int x,int y,int max,int ofs ); extern void SimplePotmeterPutImage( txSample * bf,int x,int y,float frac ); extern void Render( wsTWindow * window,wItem * Items,int nrItems,char * db,int size ); #endif /* MPLAYER_GUI_GUI_COMMON_H */