comparison mplayer.c @ 1005:90682d6f84f5

terminal reset bug with gui fixed
author pontscho
date Mon, 04 Jun 2001 18:40:57 +0000
parents f035bd1f2749
children c51d7e4853d6
comparison
equal deleted inserted replaced
1004:57972eb8127a 1005:90682d6f84f5
335 #endif 335 #endif
336 336
337 if(how) printf("\nExiting... (%s)\n",how); 337 if(how) printf("\nExiting... (%s)\n",how);
338 if(verbose) printf("max framesize was %d bytes\n",max_framesize); 338 if(verbose) printf("max framesize was %d bytes\n",max_framesize);
339 // restore terminal: 339 // restore terminal:
340 getch2_disable(); 340 #ifdef HAVE_GUI
341 if ( nogui )
342 #endif
343 getch2_disable();
341 video_out->uninit(); 344 video_out->uninit();
342 #ifdef USE_XMMP_AUDIO 345 #ifdef USE_XMMP_AUDIO
343 if(verbose) printf("XMM: closing audio driver...\n"); 346 if(verbose) printf("XMM: closing audio driver...\n");
344 if(pSound){ 347 if(pSound){
345 pSound->Exit( pSound ); 348 pSound->Exit( pSound );
459 //int user_bpp=0; 462 //int user_bpp=0;
460 463
461 int osd_visible=100; 464 int osd_visible=100;
462 int osd_function=OSD_PLAY; 465 int osd_function=OSD_PLAY;
463 int osd_last_pts=-303; 466 int osd_last_pts=-303;
467
468 float a_frame=0; // Audio
464 469
465 float rel_seek_secs=0; 470 float rel_seek_secs=0;
466 471
467 #include "mixer.h" 472 #include "mixer.h"
468 #include "cfg-mplayer.h" 473 #include "cfg-mplayer.h"
1382 //float audio_buffer_delay=0; 1387 //float audio_buffer_delay=0;
1383 1388
1384 //float buffer_delay=0; 1389 //float buffer_delay=0;
1385 float frame_correction=0; // A-V timestamp kulonbseg atlagolas 1390 float frame_correction=0; // A-V timestamp kulonbseg atlagolas
1386 int frame_corr_num=0; // 1391 int frame_corr_num=0; //
1387 float a_frame=0; // Audio
1388 float v_frame=0; // Video 1392 float v_frame=0; // Video
1389 float time_frame=0; // Timer 1393 float time_frame=0; // Timer
1390 float c_total=0; 1394 float c_total=0;
1391 float max_pts_correction=0;//default_max_pts_correction; 1395 float max_pts_correction=0;//default_max_pts_correction;
1392 int eof=0; 1396 int eof=0;
1405 if ( nogui ) 1409 if ( nogui )
1406 #endif 1410 #endif
1407 lirc_mp_setup(); 1411 lirc_mp_setup();
1408 #endif 1412 #endif
1409 1413
1414 #ifdef HAVE_GUI
1415 if ( nogui )
1416 {
1417 #endif
1410 #ifdef USE_TERMCAP 1418 #ifdef USE_TERMCAP
1411 load_termcap(NULL); // load key-codes 1419 load_termcap(NULL); // load key-codes
1412 #endif 1420 #endif
1413 if(f) getch2_enable(); 1421 if(f) getch2_enable();
1422 #ifdef HAVE_GUI
1423 }
1424 #endif
1414 1425
1415 //========= Catch terminate signals: ================ 1426 //========= Catch terminate signals: ================
1416 // terminate requests: 1427 // terminate requests:
1417 signal(SIGTERM,exit_sighandler); // kill 1428 signal(SIGTERM,exit_sighandler); // kill
1418 signal(SIGHUP,exit_sighandler); // kill -HUP / xterm closed 1429 signal(SIGHUP,exit_sighandler); // kill -HUP / xterm closed