# HG changeset patch # User rbultje # Date 1236099978 0 # Node ID aa5dcae3f2105b2e6447635ca7470b8e8791061d # Parent b34d9614b887fda9af852c9b9b0443a2cd07ac61 Rename "fd1" variable ro "fd". There were previously two variables (fd1 and fd2) and one was just removed, so naming the other "fd1" is counter-intuitive. See "[RFC] rtsp.c EOF support" thread. diff -r b34d9614b887 -r aa5dcae3f210 rtsp.c --- a/rtsp.c Tue Mar 03 17:04:51 2009 +0000 +++ b/rtsp.c Tue Mar 03 17:06:18 2009 +0000 @@ -1305,7 +1305,7 @@ RTSPState *rt = s->priv_data; RTSPStream *rtsp_st; fd_set rfds; - int fd1, fd_max, n, i, ret; + int fd, fd_max, n, i, ret; struct timeval tv; for(;;) { @@ -1318,10 +1318,10 @@ if (rtsp_st->rtp_handle) { /* currently, we cannot probe RTCP handle because of * blocking restrictions */ - fd1 = url_get_file_handle(rtsp_st->rtp_handle); - if (fd1 > fd_max) - fd_max = fd1; - FD_SET(fd1, &rfds); + fd = url_get_file_handle(rtsp_st->rtp_handle); + if (fd > fd_max) + fd_max = fd; + FD_SET(fd, &rfds); } } tv.tv_sec = 0; @@ -1331,8 +1331,8 @@ for(i = 0; i < rt->nb_rtsp_streams; i++) { rtsp_st = rt->rtsp_streams[i]; if (rtsp_st->rtp_handle) { - fd1 = url_get_file_handle(rtsp_st->rtp_handle); - if (FD_ISSET(fd1, &rfds)) { + fd = url_get_file_handle(rtsp_st->rtp_handle); + if (FD_ISSET(fd, &rfds)) { ret = url_read(rtsp_st->rtp_handle, buf, buf_size); if (ret > 0) { *prtsp_st = rtsp_st;