/[rdesktop]/jpeg/rdesktop/trunk/xwin.c
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /jpeg/rdesktop/trunk/xwin.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1255 by stargo, Sun Sep 17 11:04:50 2006 UTC revision 1302 by ossman_, Thu Oct 26 09:47:17 2006 UTC
# Line 2268  ui_select(int rdp_socket) Line 2268  ui_select(int rdp_socket)
2268                  FD_SET(rdp_socket, &rfds);                  FD_SET(rdp_socket, &rfds);
2269                  FD_SET(g_x_socket, &rfds);                  FD_SET(g_x_socket, &rfds);
2270    
 #ifdef WITH_RDPSND  
                 /* FIXME: there should be an API for registering fds */  
                 if (g_dsp_busy)  
                 {  
                         FD_SET(g_dsp_fd, &wfds);  
                         n = (g_dsp_fd > n) ? g_dsp_fd : n;  
                 }  
 #endif  
2271                  /* default timeout */                  /* default timeout */
2272                  tv.tv_sec = 60;                  tv.tv_sec = 60;
2273                  tv.tv_usec = 0;                  tv.tv_usec = 0;
2274    
2275    #ifdef WITH_RDPSND
2276                    rdpsnd_add_fds(&n, &rfds, &wfds, &tv);
2277    #endif
2278    
2279                  /* add redirection handles */                  /* add redirection handles */
2280                  rdpdr_add_fds(&n, &rfds, &wfds, &tv, &s_timeout);                  rdpdr_add_fds(&n, &rfds, &wfds, &tv, &s_timeout);
2281                  seamless_select_timeout(&tv);                  seamless_select_timeout(&tv);
# Line 2292  ui_select(int rdp_socket) Line 2288  ui_select(int rdp_socket)
2288                                  error("select: %s\n", strerror(errno));                                  error("select: %s\n", strerror(errno));
2289    
2290                          case 0:                          case 0:
2291    #ifdef WITH_RDPSND
2292                                    rdpsnd_check_fds(&rfds, &wfds);
2293    #endif
2294    
2295                                  /* Abort serial read calls */                                  /* Abort serial read calls */
2296                                  if (s_timeout)                                  if (s_timeout)
2297                                          rdpdr_check_fds(&rfds, &wfds, (BOOL) True);                                          rdpdr_check_fds(&rfds, &wfds, (BOOL) True);
2298                                  continue;                                  continue;
2299                  }                  }
2300    
2301    #ifdef WITH_RDPSND
2302                    rdpsnd_check_fds(&rfds, &wfds);
2303    #endif
2304    
2305                  rdpdr_check_fds(&rfds, &wfds, (BOOL) False);                  rdpdr_check_fds(&rfds, &wfds, (BOOL) False);
2306    
2307                  if (FD_ISSET(rdp_socket, &rfds))                  if (FD_ISSET(rdp_socket, &rfds))
2308                          return 1;                          return 1;
2309    
 #ifdef WITH_RDPSND  
                 if (g_dsp_busy && FD_ISSET(g_dsp_fd, &wfds))  
                         rdpsnd_play();  
 #endif  
2310          }          }
2311  }  }
2312    

Legend:
Removed from v.1255  
changed lines
  Added in v.1302

  ViewVC Help
Powered by ViewVC 1.1.26