Mercurial > mplayer.hg
diff mplayer.c @ 7150:b212f74e14ec
- add play time subtitle change support
- better language support
author | pontscho |
---|---|
date | Thu, 29 Aug 2002 22:24:49 +0000 |
parents | ea3f7a306873 |
children | 28677d779205 |
line wrap: on
line diff
--- a/mplayer.c Thu Aug 29 21:37:45 2002 +0000 +++ b/mplayer.c Thu Aug 29 22:24:49 2002 +0000 @@ -251,6 +251,10 @@ char *vobsub_name=NULL; /*DSP!!char *dsp=NULL;*/ int subcc_enabled=0; +#ifdef USE_SUB +subtitle* subtitles=NULL; +float sub_last_pts = -303; +#endif extern char *vo_subdevice; extern char *ao_subdevice; @@ -467,10 +471,6 @@ int main(int argc,char* argv[], char *envp[]){ -#ifdef USE_SUB -static subtitle* subtitles=NULL; -float sub_last_pts = -303; -#endif static demux_stream_t *d_audio=NULL; static demux_stream_t *d_video=NULL; @@ -2803,6 +2803,7 @@ if ( subtitles ) { sub_free( subtitles ); + if ( sub_name ) free( sub_name ); sub_name=NULL; vo_sub=NULL; subtitles=NULL;