Mercurial > mplayer.hg
view gui/cfg.h @ 24678:9aab9d7b51f0
Fix missing subtitles after seeking back
Subtitle packets that had been demuxed but whose start time had not
yet been reached were left in the demuxer stream after seeking.
When using the default (non-libass) subtitle rendering this could
block subtitles from appearing as long as the playback position stayed
below the original one before seek. External subtitle files were not
affected.
Fixed by making seek code free all packets from the subtitle stream.
author | uau |
---|---|
date | Thu, 04 Oct 2007 02:35:34 +0000 |
parents | 0bbfebce0583 |
children | 3baf6a2283da |
line wrap: on
line source
#ifndef GUI_CFG_H #define GUI_CFG_H extern int gtkEnableAudioEqualizer; extern int gtkVfPP; extern int gtkVfLAVC; extern int gtkAONorm; extern int gtkAOFakeSurround; extern int gtkAOExtraStereo; extern float gtkAOExtraStereoMul; #ifdef USE_OSS_AUDIO extern char * gtkAOOSSMixer; extern char * gtkAOOSSMixerChannel; extern char * gtkAOOSSDevice; #endif #if defined(HAVE_ALSA9) || defined (HAVE_ALSA1X) extern char * gtkAOALSAMixer; extern char * gtkAOALSAMixerChannel; extern char * gtkAOALSADevice; #endif #ifdef HAVE_SDL extern char * gtkAOSDLDriver; #endif #ifdef USE_ESD extern char * gtkAOESDDevice; #endif #ifdef HAVE_DXR3 extern char * gtkDXR3Device; #endif extern int gtkCacheOn; extern int gtkCacheSize; extern int gtkAutoSyncOn; extern int gtkAutoSync; extern int gtkSubDumpMPSub; extern int gtkSubDumpSrt; extern char * gtkEquChannel1; extern char * gtkEquChannel2; extern char * gtkEquChannel3; extern char * gtkEquChannel4; extern char * gtkEquChannel5; extern char * gtkEquChannel6; extern int gtkLoadFullscreen; extern int gtkShowVideoWindow; extern int gtkEnablePlayBar; extern int gui_save_pos; extern int gui_main_pos_x; extern int gui_main_pos_y; extern int gui_sub_pos_x; extern int gui_sub_pos_y; #ifdef USE_ASS typedef struct { int enabled; int use_margins; int top_margin; int bottom_margin; } gtkASS_t; extern gtkASS_t gtkASS; #endif extern int cfg_read( void ); extern int cfg_write( void ); #endif