[Mplayer-cvslog] CVS: main/libmpcodecs pullup.c,1.8,1.9 pullup.h,1.3,1.4

Dominik Mierzejewski CVS rathann at mplayerhq.hu
Sat Nov 8 01:27:20 CET 2003


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

Modified Files:
	pullup.c pullup.h 
Log Message:
Warning fixes (approved by A'rpi).


Index: pullup.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpcodecs/pullup.c,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- pullup.c	28 Sep 2003 03:37:42 -0000	1.8
+++ pullup.c	8 Nov 2003 00:26:46 -0000	1.9
@@ -1,6 +1,8 @@
 
 
+#include <stdio.h>
 #include <stdlib.h>
+#include <string.h>
 #include "pullup.h"
 #include "config.h"
 
@@ -321,7 +323,7 @@
 	}
 }
 
-int pullup_submit_field(struct pullup_context *c, struct pullup_buffer *b, int parity)
+void pullup_submit_field(struct pullup_context *c, struct pullup_buffer *b, int parity)
 {
 	struct pullup_field *f;
 	
@@ -329,7 +331,7 @@
 	check_field_queue(c);
 	
 	/* Cannot have two fields of same parity in a row; drop the new one */
-	if (c->last && c->last->parity == parity) return 0;
+	if (c->last && c->last->parity == parity) return;
 
 	f = c->head;
 	f->parity = parity;

Index: pullup.h
===================================================================
RCS file: /cvsroot/mplayer/main/libmpcodecs/pullup.h,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- pullup.h	28 Sep 2003 03:37:42 -0000	1.3
+++ pullup.h	8 Nov 2003 00:26:46 -0000	1.4
@@ -64,7 +64,7 @@
 void pullup_release_buffer(struct pullup_buffer *b, int parity);
 struct pullup_buffer *pullup_get_buffer(struct pullup_context *c, int parity);
 
-int pullup_submit_field(struct pullup_context *c, struct pullup_buffer *b, int parity);
+void pullup_submit_field(struct pullup_context *c, struct pullup_buffer *b, int parity);
 void pullup_flush_fields(struct pullup_context *c);
 
 struct pullup_frame *pullup_get_frame(struct pullup_context *c);



More information about the MPlayer-cvslog mailing list