mirror of
https://github.com/mpv-player/mpv
synced 2025-02-11 09:27:26 +00:00
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:
parent
e8b4265feb
commit
b02374fb97
@ -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
|
#ifdef HAVE_DVB
|
||||||
#define NFD 2
|
#define NFD 2
|
||||||
struct pollfd pfd[NFD];
|
struct pollfd pfd[NFD];
|
||||||
|
int orig_len = len;
|
||||||
|
|
||||||
// printf("write %d bytes \n",len);
|
// printf("write %d bytes \n",len);
|
||||||
|
|
||||||
@ -222,6 +223,7 @@ static void my_write(unsigned char* data,int len){
|
|||||||
#else
|
#else
|
||||||
write(vo_mpegpes_fd,data,len); // write to file
|
write(vo_mpegpes_fd,data,len); // write to file
|
||||||
#endif
|
#endif
|
||||||
|
return orig_len;
|
||||||
}
|
}
|
||||||
|
|
||||||
static unsigned char pes_header[PES_MAX_SIZE];
|
static unsigned char pes_header[PES_MAX_SIZE];
|
||||||
|
Loading…
Reference in New Issue
Block a user