[Mplayer-cvslog] CVS: main mplayer.c,1.141,1.142 cfg-mplayer.h,1.52,1.53
GEREOFFY
arpi_esp at users.sourceforge.net
Sun Jun 3 21:46:24 CEST 2001
Update of /cvsroot/mplayer/main
In directory usw-pr-cvs1:/tmp/cvs-serv2006
Modified Files:
mplayer.c cfg-mplayer.h
Log Message:
new option: -srate
Index: mplayer.c
===================================================================
RCS file: /cvsroot/mplayer/main/mplayer.c,v
retrieving revision 1.141
retrieving revision 1.142
diff -C2 -r1.141 -r1.142
*** mplayer.c 2001/06/03 18:21:41 1.141
--- mplayer.c 2001/06/03 19:46:22 1.142
***************
*** 418,421 ****
--- 418,422 ----
int delay_corrected=1;
float force_fps=0;
+ int force_srate=0;
float audio_delay=0;
float initial_pts_delay=0;
***************
*** 1408,1412 ****
if(has_audio){
! if(!audio_out->init(sh_audio->samplerate,sh_audio->channels,sh_audio->sample_format,0)){
printf("couldn't open/init audio device -> NOSOUND\n");
has_audio=0;
--- 1409,1414 ----
if(has_audio){
! if(!audio_out->init(force_srate?force_srate:sh_audio->samplerate,
! sh_audio->channels,sh_audio->sample_format,0)){
printf("couldn't open/init audio device -> NOSOUND\n");
has_audio=0;
Index: cfg-mplayer.h
===================================================================
RCS file: /cvsroot/mplayer/main/cfg-mplayer.h,v
retrieving revision 1.52
retrieving revision 1.53
diff -C2 -r1.52 -r1.53
*** cfg-mplayer.h 2001/06/03 00:24:49 1.52
--- cfg-mplayer.h 2001/06/03 19:46:22 1.53
***************
*** 104,107 ****
--- 104,108 ----
{"mc", &default_max_pts_correction, CONF_TYPE_FLOAT, CONF_RANGE, 0, 10},
{"fps", &force_fps, CONF_TYPE_FLOAT, CONF_MIN, 0, 0},
+ {"srate", &force_srate, CONF_TYPE_INT, CONF_RANGE, 1000, 96001},
{"afm", &audio_format, CONF_TYPE_INT, CONF_RANGE, 1, 6},
{"dshow", &allow_dshow, CONF_TYPE_FLAG, 0, 0, 1},
_______________________________________________
Mplayer-cvslog mailing list
Mplayer-cvslog at lists.sourceforge.net
http://lists.sourceforge.net/lists/listinfo/mplayer-cvslog
More information about the MPlayer-cvslog
mailing list