changeset 19150:8f2b737e2a70

my_write() must return the bytes written
author nicodvb
date Sat, 22 Jul 2006 10:07:04 +0000
parents 73d8ea32ebb8
children ce6ad55eb7a2
files libvo/vo_mpegpes.c
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libvo/vo_mpegpes.c	Sat Jul 22 09:59:44 2006 +0000
+++ b/libvo/vo_mpegpes.c	Sat Jul 22 10:07:04 2006 +0000
@@ -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];