[MPlayer-dev-eng] mms timeouts

Asaf asaf.tvn at gmail.com
Tue Sep 18 16:43:41 CEST 2007


Since there are some broken mms links (port 1755) in which
we have to wait 30 seconds or so before we fallback to port 80
I wanted to suggest a patch to stream/tcp.c :

 diff 1.0rc1/MPlayer-1.0rc1/stream/tcp.c
1.0rc1-patched/MPlayer-1.0rc1/stream/tcp.c
180,181c180,189
<       // When the connection will be made, we will have a writable fd
<       while((ret = select(socket_server_fd+1, NULL, &set, NULL, &tv))
== 0) {
---
> 
>       // Handle broken mms links : (fallback to port 80)
>       int max_count = 30;
>       if (port == 1755) { //mms
>         max_count = 1;
>       }
> 
> 
>       // When the connection will be made, we will have a writable fd
>       while((ret = select(socket_server_fd+1, NULL, &set, NULL, &tv))
== 0) { 
184,185c192,193
<             else if(count > 30 || mp_input_check_interrupt(500)) {
<               if(count > 30)
---
>             else if(count > max_count ||
mp_input_check_interrupt(500)) {
>               if(count > max_count )
197d204
<





More information about the MPlayer-dev-eng mailing list