[MPlayer-cvslog] CVS: main/libmpdemux dvbin.c,1.13,1.14
Nico Sabbi CVS
syncmail at mplayerhq.hu
Mon Apr 18 21:49:43 CEST 2005
- Previous message: [MPlayer-cvslog] CVS: main/libvo mga_common.c, 1.60, 1.61 vesa_lvo.c, 1.18, 1.19 vo_aa.c, 1.45, 1.46 vo_bl.c, 1.9, 1.10 vo_caca.c, 1.1, 1.2 vo_cvidix.c, 1.13, 1.14 vo_dfbmga.c, 1.26, 1.27 vo_dga.c, 1.71, 1.72 vo_directfb2.c, 1.17, 1.18 vo_dxr3.c, 1.123, 1.124 vo_fbdev.c, 1.90, 1.91 vo_fbdev2.c, 1.5, 1.6 vo_gif89a.c, 1.12, 1.13 vo_gl.c, 1.67, 1.68 vo_jpeg.c, 1.27, 1.28 vo_md5sum.c, 1.4, 1.5 vo_mga.c, 1.38, 1.39 vo_mpegpes.c, 1.40, 1.41 vo_null.c, 1.12, 1.13 vo_png.c, 1.25, 1.26 vo_pnm.c, 1.7, 1.8 vo_sdl.c, 1.120, 1.121 vo_svga.c, 1.77, 1.78 vo_syncfb.c, 1.14, 1.15 vo_tdfx_vid.c, 1.4, 1.5 vo_tga.c, 1.2, 1.3 vo_vesa.c, 1.104, 1.105 vo_winvidix.c, 1.5, 1.6 vo_x11.c, 1.141, 1.142 vo_xmga.c, 1.91, 1.92 vo_xover.c, 1.11, 1.12 vo_xv.c, 1.164, 1.165 vo_xvidix.c, 1.71, 1.72 vo_xvmc.c, 1.19, 1.20 vo_yuv4mpeg.c, 1.21, 1.22 vo_zr.c, 1.30, 1.31
- Next message: [MPlayer-cvslog] CVS: main/DOCS/tech snow.txt,1.5,1.6
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
CVS change done by Nico Sabbi CVS
Update of /cvsroot/mplayer/main/libmpdemux
In directory mail:/var2/tmp/cvs-serv17253
Modified Files:
dvbin.c
Log Message:
check the result of poll() before read()ing; 100l
Index: dvbin.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdemux/dvbin.c,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -r1.13 -r1.14
--- dvbin.c 16 Apr 2005 12:51:09 -0000 1.13
+++ dvbin.c 18 Apr 2005 19:49:40 -0000 1.14
@@ -404,14 +404,8 @@
pfds[0].fd = fd;
pfds[0].events = POLLIN | POLLPRI;
- poll(pfds, 1, 500);
rk = size - pos;
- if((rk = read(fd, &buffer[pos], rk)) > 0)
- {
- pos += rk;
- mp_msg(MSGT_DEMUX, MSGL_DBG3, "ret (%d) bytes\n", pos);
- }
- else
+ if(poll(pfds, 1, 500) <= 0)
{
errno = 0;
mp_msg(MSGT_DEMUX, MSGL_ERR, "dvb_streaming_read, attempt N. %d failed with errno %d when reading %d bytes\n", tries, errno, size-pos);
@@ -419,8 +413,14 @@
continue;
else
break;
- }
}
+ if((rk = read(fd, &buffer[pos], rk)) > 0)
+ {
+ pos += rk;
+ mp_msg(MSGT_DEMUX, MSGL_DBG3, "ret (%d) bytes\n", pos);
+ }
+ }
+
if(! pos)
mp_msg(MSGT_DEMUX, MSGL_ERR, "dvb_streaming_read, return %d bytes\n", pos);
- Previous message: [MPlayer-cvslog] CVS: main/libvo mga_common.c, 1.60, 1.61 vesa_lvo.c, 1.18, 1.19 vo_aa.c, 1.45, 1.46 vo_bl.c, 1.9, 1.10 vo_caca.c, 1.1, 1.2 vo_cvidix.c, 1.13, 1.14 vo_dfbmga.c, 1.26, 1.27 vo_dga.c, 1.71, 1.72 vo_directfb2.c, 1.17, 1.18 vo_dxr3.c, 1.123, 1.124 vo_fbdev.c, 1.90, 1.91 vo_fbdev2.c, 1.5, 1.6 vo_gif89a.c, 1.12, 1.13 vo_gl.c, 1.67, 1.68 vo_jpeg.c, 1.27, 1.28 vo_md5sum.c, 1.4, 1.5 vo_mga.c, 1.38, 1.39 vo_mpegpes.c, 1.40, 1.41 vo_null.c, 1.12, 1.13 vo_png.c, 1.25, 1.26 vo_pnm.c, 1.7, 1.8 vo_sdl.c, 1.120, 1.121 vo_svga.c, 1.77, 1.78 vo_syncfb.c, 1.14, 1.15 vo_tdfx_vid.c, 1.4, 1.5 vo_tga.c, 1.2, 1.3 vo_vesa.c, 1.104, 1.105 vo_winvidix.c, 1.5, 1.6 vo_x11.c, 1.141, 1.142 vo_xmga.c, 1.91, 1.92 vo_xover.c, 1.11, 1.12 vo_xv.c, 1.164, 1.165 vo_xvidix.c, 1.71, 1.72 vo_xvmc.c, 1.19, 1.20 vo_yuv4mpeg.c, 1.21, 1.22 vo_zr.c, 1.30, 1.31
- Next message: [MPlayer-cvslog] CVS: main/DOCS/tech snow.txt,1.5,1.6
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the MPlayer-cvslog
mailing list