Ticket #1993: dvbchannel_wait_for_backend.diff

File dvbchannel_wait_for_backend.diff, 533 bytes (added by gnome42@…, 18 years ago)

patch

  • libs/libmythtv/dvbchannel.cpp

     
    900924 */
    901925static bool wait_for_backend(int fd, int timeout_ms)
    902926{
    903     struct timeval select_timeout = { 0, (timeout_ms % 1000) * 1000 /*usec*/};
     927    struct timeval select_timeout = { 0, timeout_ms * 1000 /*usec*/};
    904928    fd_set fd_select_set;
    905929    FD_ZERO(    &fd_select_set);
    906930    FD_SET (fd, &fd_select_set);