]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
fix timing issues with rawtsinput (file input).
authorJohn Törnblom <john.tornblom@gmail.com>
Sat, 27 Oct 2012 17:14:39 +0000 (19:14 +0200)
committerJohn Törnblom <john.tornblom@gmail.com>
Sat, 27 Oct 2012 17:14:39 +0000 (19:14 +0200)
src/rawtsinput.c

index a947de569148d4c2a0d05340c7d7a3d281ef1d1e..bd4a50989134d8b9414906a02048b5d1e9c5bd4f 100644 (file)
@@ -267,7 +267,7 @@ process_ts_packet(rawts_t *rt, uint8_t *tsb)
          slp.tv_sec  =  d / 1000000;
          slp.tv_nsec = (d % 1000000) * 1000;
        
-         clock_nanosleep(CLOCK_MONOTONIC_COARSE, TIMER_ABSTIME, &slp, NULL);
+         clock_nanosleep(CLOCK_MONOTONIC, TIMER_ABSTIME, &slp, NULL);
          didsleep = 1;
        }
        t->s_pcr_last = pcr;