[Mplayer-cvslog] CVS: main/libmpcodecs dec_video.c,1.127,1.128
Arpi of Ize
arpi at mplayer.dev.hu
Mon Mar 25 04:19:46 CET 2002
Update of /cvsroot/mplayer/main/libmpcodecs
In directory mplayer:/var/tmp.root/cvs-serv10778
Modified Files:
dec_video.c
Log Message:
check and set codec selection - impossible to do it at find_codec
Index: dec_video.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpcodecs/dec_video.c,v
retrieving revision 1.127
retrieving revision 1.128
diff -u -r1.127 -r1.128
--- dec_video.c 23 Mar 2002 02:41:31 -0000 1.127
+++ dec_video.c 25 Mar 2002 03:19:43 -0000 1.128
@@ -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;
More information about the MPlayer-cvslog
mailing list