[vlc-devel] commit: Fixed mms udp polling and network timeout. (Laurent Aimar )
git version control
git at videolan.org
Wed Feb 18 21:15:07 CET 2009
vlc | branch: master | Laurent Aimar <fenrir at videolan.org> | Wed Feb 18 20:52:09 2009 +0100| [366ec46f5e2df248858b1a6ac978a823f33225ac] | committer: Laurent Aimar
Fixed mms udp polling and network timeout.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=366ec46f5e2df248858b1a6ac978a823f33225ac
---
modules/access/mms/mmstu.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/modules/access/mms/mmstu.c b/modules/access/mms/mmstu.c
index e96317b..9f24789 100644
--- a/modules/access/mms/mmstu.c
+++ b/modules/access/mms/mmstu.c
@@ -1088,13 +1088,13 @@ static int NetFillBuffer( access_t *p_access )
}
if( i_udp > 0 )
{
- ufd[nfd].fd = p_sys->i_handle_tcp;
+ ufd[nfd].fd = p_sys->i_handle_udp;
ufd[nfd].events = POLLIN;
nfd++;
}
/* We'll wait 0.5 second if nothing happens */
- timeout = 500;
+ timeout = __MIN( 500, p_sys->i_timeout );
if( i_try * timeout > p_sys->i_timeout )
{
@@ -1107,7 +1107,8 @@ static int NetFillBuffer( access_t *p_access )
return -1;
}
- if( !vlc_object_alive (p_access) || p_access->b_error ) return -1;
+ if( !vlc_object_alive (p_access) || p_access->b_error )
+ return -1;
//msg_Dbg( p_access, "NetFillBuffer: trying again (select)" );
More information about the vlc-devel
mailing list