[MPlayer-cvslog] r19155 - trunk/libvo/vo_mpegpes.c

nicodvb subversion at mplayerhq.hu
Sat Jul 22 12:07:04 CEST 2006


Author: nicodvb
Date: Sat Jul 22 12:07:04 2006
New Revision: 19155

Modified:
   trunk/libvo/vo_mpegpes.c

Log:
my_write() must return the bytes written

Modified: trunk/libvo/vo_mpegpes.c
==============================================================================
--- trunk/libvo/vo_mpegpes.c	(original)
+++ trunk/libvo/vo_mpegpes.c	Sat Jul 22 12:07:04 2006
@@ -191,10 +191,11 @@
 }
 
 
-static void my_write(unsigned char* data,int len){
+static int my_write(unsigned char* data,int len){
 #ifdef HAVE_DVB
 #define NFD   2
     struct pollfd pfd[NFD];
+    int orig_len = len;
 
 //    printf("write %d bytes  \n",len);
 
@@ -222,6 +223,7 @@
 #else
     write(vo_mpegpes_fd,data,len); // write to file
 #endif
+    return orig_len;
 }
 
 static unsigned char pes_header[PES_MAX_SIZE];



More information about the MPlayer-cvslog mailing list