diff options
author | rofafor <rofafor> | 2009-03-17 20:03:30 +0000 |
---|---|---|
committer | rofafor <rofafor> | 2009-03-17 20:03:30 +0000 |
commit | 0130b9591279e36aa82fb05b0549dccebce97814 (patch) | |
tree | cd1d9dd6cb44c088e2a6394f08d2be095a8d193f | |
parent | 30920bb8ad8d9f9b2a111e97017320435b9d69f5 (diff) | |
download | xineliboutput-0130b9591279e36aa82fb05b0549dccebce97814.tar.gz xineliboutput-0130b9591279e36aa82fb05b0549dccebce97814.tar.bz2 |
Add a missed condition in the previous commit.
-rw-r--r-- | xine_input_vdr.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/xine_input_vdr.c b/xine_input_vdr.c index 18bcdbaf..9f05862e 100644 --- a/xine_input_vdr.c +++ b/xine_input_vdr.c @@ -4,7 +4,7 @@ * See the main source file 'xineliboutput.c' for copyright information and * how to reach the author. * - * $Id: xine_input_vdr.c,v 1.245 2009-03-17 18:07:13 rofafor Exp $ + * $Id: xine_input_vdr.c,v 1.246 2009-03-17 20:03:30 rofafor Exp $ * */ @@ -3552,14 +3552,15 @@ static int vdr_plugin_read_net_tcp(vdr_input_plugin_t *this) } if (read_buffer) { - if (read_buffer->size && this->control_running && result == XIO_TIMEOUT && (++retries < 10)) { + int cnt = read_buffer->size; + if (cnt && this->control_running && result == XIO_TIMEOUT && (++retries < 10)) { LOGMSG("TCP: Warning: long delay (>500ms) !"); goto retry; } read_buffer->free_buffer(read_buffer); read_buffer = NULL; - if (this->fd_data >= 0 && result == XIO_TIMEOUT) { + if (cnt && this->fd_data >= 0 && result == XIO_TIMEOUT) { LOGMSG("TCP: Delay too long, disconnecting"); this->control_running = 0; return XIO_ERROR; |