comparison 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
comparison
equal deleted inserted replaced
7149:aa9debe16559 7150:b212f74e14ec
249 float sub_fps=0; 249 float sub_fps=0;
250 int sub_auto = 1; 250 int sub_auto = 1;
251 char *vobsub_name=NULL; 251 char *vobsub_name=NULL;
252 /*DSP!!char *dsp=NULL;*/ 252 /*DSP!!char *dsp=NULL;*/
253 int subcc_enabled=0; 253 int subcc_enabled=0;
254 #ifdef USE_SUB
255 subtitle* subtitles=NULL;
256 float sub_last_pts = -303;
257 #endif
254 258
255 extern char *vo_subdevice; 259 extern char *vo_subdevice;
256 extern char *ao_subdevice; 260 extern char *ao_subdevice;
257 261
258 static stream_t* stream=NULL; 262 static stream_t* stream=NULL;
465 return eof; 469 return eof;
466 } 470 }
467 471
468 int main(int argc,char* argv[], char *envp[]){ 472 int main(int argc,char* argv[], char *envp[]){
469 473
470 #ifdef USE_SUB
471 static subtitle* subtitles=NULL;
472 float sub_last_pts = -303;
473 #endif
474 474
475 static demux_stream_t *d_audio=NULL; 475 static demux_stream_t *d_audio=NULL;
476 static demux_stream_t *d_video=NULL; 476 static demux_stream_t *d_video=NULL;
477 static demux_stream_t *d_dvdsub=NULL; 477 static demux_stream_t *d_dvdsub=NULL;
478 478
2801 #ifdef USE_SUB 2801 #ifdef USE_SUB
2802 current_module="sub_free"; 2802 current_module="sub_free";
2803 if ( subtitles ) 2803 if ( subtitles )
2804 { 2804 {
2805 sub_free( subtitles ); 2805 sub_free( subtitles );
2806 if ( sub_name ) free( sub_name );
2806 sub_name=NULL; 2807 sub_name=NULL;
2807 vo_sub=NULL; 2808 vo_sub=NULL;
2808 subtitles=NULL; 2809 subtitles=NULL;
2809 } 2810 }
2810 #endif 2811 #endif