Mercurial > mplayer.hg
changeset 5328:014ddf03476d
check and set codec selection - impossible to do it at find_codec
author | arpi |
---|---|
date | Mon, 25 Mar 2002 03:19:43 +0000 |
parents | 674793ca4225 |
children | bf30f8d31e6a |
files | libmpcodecs/dec_video.c |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/libmpcodecs/dec_video.c Mon Mar 25 03:19:06 2002 +0000 +++ b/libmpcodecs/dec_video.c Mon Mar 25 03:19:43 2002 +0000 @@ -123,9 +123,11 @@ sh_video->codec,0) )){ // ok we found one codec int i; + if(sh_video->codec->flags&CODECS_FLAG_SELECTED) continue; // already tried & failed if(codecname && strcmp(sh_video->codec->name,codecname)) continue; // -vc if(vfm>=0 && sh_video->codec->driver!=vfm) continue; // vfm doesn't match if(sh_video->codec->status<status) continue; // too unstable + sh_video->codec->flags|=CODECS_FLAG_SELECTED; // tagging it // ok, it matches all rules, let's find the driver! for (i=0; mpcodecs_vd_drivers[i] != NULL; i++) if(mpcodecs_vd_drivers[i]->info->id==sh_video->codec->driver) break;