Ticket #13392: 20190128-timeout-conversion.patch

File 20190128-timeout-conversion.patch, 641 bytes (added by Klaas de Waal, 13 months ago)
  • mythtv/libs/libmythtv/recorders/dvbchannel.cpp

    diff --git a/mythtv/libs/libmythtv/recorders/dvbchannel.cpp b/mythtv/libs/libmythtv/recorders/dvbchannel.cpp
    index a21d35df3f..c58da18314 100644
    a b static void drain_dvb_events(int fd) 
    14941494 */
    14951495static bool wait_for_backend(int fd, int timeout_ms)
    14961496{
    1497     struct timeval select_timeout = { 0, (timeout_ms % 1000) * 1000 /*usec*/};
     1497    struct timeval select_timeout = { timeout_ms/1000, (timeout_ms % 1000) * 1000 /*usec*/};
    14981498    fd_set fd_select_set;
    14991499    FD_ZERO(    &fd_select_set);
    15001500    FD_SET (fd, &fd_select_set);