# HG changeset patch # User arpi # Date 1017025647 0 # Node ID 0b024f661dd0fcc0870d3daba43af519c76fbfcc # Parent 9c326f19906092f486a755681e630637c8c3544c use codec selection diff -r 9c326f199060 -r 0b024f661dd0 codec-cfg.c --- a/codec-cfg.c Mon Mar 25 03:02:57 2002 +0000 +++ b/codec-cfg.c Mon Mar 25 03:07:27 2002 +0000 @@ -698,6 +698,7 @@ if(!i) return NULL; for (/* NOTHING */; i--; c++) { if(start && c<=start) continue; + if(c->flags&CODECS_FLAG_SELECTED) continue; for (j = 0; j < CODECS_MAX_FOURCC; j++) { if (c->fourcc[j]==fourcc || c->driver==0) { if (fourccmap) diff -r 9c326f199060 -r 0b024f661dd0 codec-cfg.h --- a/codec-cfg.h Mon Mar 25 03:02:57 2002 +0000 +++ b/codec-cfg.h Mon Mar 25 03:07:27 2002 +0000 @@ -104,5 +104,6 @@ codecs_t* find_audio_codec(unsigned int fourcc, unsigned int *fourccmap, codecs_t *start); codecs_t* find_codec(unsigned int fourcc,unsigned int *fourccmap,codecs_t *start,int audioflag); void list_codecs(int audioflag); +void codecs_reset_selection(int audioflag); #endif diff -r 9c326f199060 -r 0b024f661dd0 mplayer.c --- a/mplayer.c Mon Mar 25 03:02:57 2002 +0000 +++ b/mplayer.c Mon Mar 25 03:07:27 2002 +0000 @@ -1187,6 +1187,7 @@ // Go through the codec.conf and find the best codec... sh_video->inited=0; +codecs_reset_selection(0); if(video_codec){ // forced codec by name: mp_msg(MSGT_CPLAYER,MSGL_INFO,"Forced video codec: %s\n",video_codec);