summaryrefslogtreecommitdiffstats
path: root/libvo
diff options
context:
space:
mode:
authornicodvb <nicodvb@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-07-22 10:07:04 +0000
committernicodvb <nicodvb@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-07-22 10:07:04 +0000
commitb02374fb978b58d6c45381aa5beb4e3b5ff8bd18 (patch)
tree57a8ddb22dfe6003c4ec4a3a6c5222b508a2aa98 /libvo
parente8b4265feb69fc0e0527d7f0f9e291fe9cb10d3b (diff)
downloadmpv-b02374fb978b58d6c45381aa5beb4e3b5ff8bd18.tar.bz2
mpv-b02374fb978b58d6c45381aa5beb4e3b5ff8bd18.tar.xz
my_write() must return the bytes written
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19155 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo')
-rw-r--r--libvo/vo_mpegpes.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libvo/vo_mpegpes.c b/libvo/vo_mpegpes.c
index 5d901c0883..1747a52e91 100644
--- a/libvo/vo_mpegpes.c
+++ b/libvo/vo_mpegpes.c
@@ -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];