my_write() must return the bytes written

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19155 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
nicodvb 2006-07-22 10:07:04 +00:00
parent e8b4265feb
commit b02374fb97
1 changed files with 3 additions and 1 deletions

View File

@ -191,10 +191,11 @@ static void draw_osd(void)
}
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 @@ static void my_write(unsigned char* data,int len){
#else
write(vo_mpegpes_fd,data,len); // write to file
#endif
return orig_len;
}
static unsigned char pes_header[PES_MAX_SIZE];