[Mplayer-cvslog] CVS: main/libmpcodecs vf.c,1.55,1.56

Alban Bedel CVS albeu at mplayerhq.hu
Wed Oct 30 18:49:06 CET 2002


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

Modified Files:
	vf.c 
Log Message:
The default query_format shouldn't accept IMGFMT_MPEGPES


Index: vf.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpcodecs/vf.c,v
retrieving revision 1.55
retrieving revision 1.56
diff -u -r1.55 -r1.56
--- vf.c	29 Oct 2002 22:37:11 -0000	1.55
+++ vf.c	30 Oct 2002 17:48:39 -0000	1.56
@@ -260,6 +260,12 @@
 
 //============================================================================
 
+// By default vf doesn't accept MPEGPES
+static int vf_default_query_format(struct vf_instance_s* vf, unsigned int fmt){
+  if(fmt == IMGFMT_MPEGPES) return 0;
+  return vf_next_query_format(vf,fmt);
+}
+
 vf_instance_t* vf_open_plugin(vf_info_t** filter_list, vf_instance_t* next, char *name, char *args){
     vf_instance_t* vf;
     int i;
@@ -276,7 +282,7 @@
     vf->next=next;
     vf->config=vf_next_config;
     vf->control=vf_next_control;
-    vf->query_format=vf_next_query_format;
+    vf->query_format=vf_default_query_format;
     vf->put_image=vf_next_put_image;
     vf->default_caps=VFCAP_ACCEPT_STRIDE;
     vf->default_reqs=0;




More information about the MPlayer-cvslog mailing list