[Mplayer-cvslog] CVS: main/libmpcodecs vf.c,1.22,1.23

Alban Bedel CVS albeu at mplayerhq.hu
Fri Apr 26 21:38:07 CEST 2002


Update of /cvsroot/mplayer/main/libmpcodecs
In directory mail:/var/tmp.root/cvs-serv11598/libmpcodecs

Modified Files:
	vf.c 
Log Message:
Don't break the pointer for the next file.


Index: vf.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpcodecs/vf.c,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -r1.22 -r1.23
--- vf.c	26 Apr 2002 17:18:02 -0000	1.22
+++ vf.c	26 Apr 2002 19:38:05 -0000	1.23
@@ -14,9 +14,7 @@
 extern vf_info_t vf_info_expand;
 extern vf_info_t vf_info_pp;
 extern vf_info_t vf_info_scale;
-#ifdef USE_LIBFAME
 extern vf_info_t vf_info_fame;
-#endif
 extern vf_info_t vf_info_format;
 extern vf_info_t vf_info_yuy2;
 extern vf_info_t vf_info_flip;
@@ -35,9 +33,7 @@
     &vf_info_scale,
 //    &vf_info_osd,
     &vf_info_vo,
-#ifdef USE_LIBFAME
     &vf_info_fame,
-#endif
     &vf_info_format,
     &vf_info_yuy2,
     &vf_info_flip,
@@ -291,16 +287,17 @@
 
 vf_instance_t* append_filters(vf_instance_t* last){
     vf_instance_t* vf;
+    char** plugin_args = vo_plugin_args;
     if(!vo_plugin_args) return last;
-    while(*vo_plugin_args){
-	char* name=strdup(*vo_plugin_args);
+    while(*plugin_args){
+	char* name=strdup(*plugin_args);
 	char* args=strchr(name,'=');
 	if(args){args[0]=0;++args;}
 	mp_msg(MSGT_VFILTER,MSGL_INFO,"Opening video filter '%s' with args '%s'...\n",name,args);
 	vf=vf_open_filter(last,name,args);
 	if(vf) last=vf;
 	free(name);
-	++vo_plugin_args;
+	++plugin_args;
     }
     return last;
 }




More information about the MPlayer-cvslog mailing list