diff --git a/ultragrid/src/uv_perf.c b/ultragrid/src/uv_perf.c index 462214fd2..5d9110f21 100644 --- a/ultragrid/src/uv_perf.c +++ b/ultragrid/src/uv_perf.c @@ -91,7 +91,7 @@ int main(int argc, char *argv[]) } tv_cur.tv_sec = tmp->tv_sec; tv_cur.tv_usec = tmp->tv_usec; - if(tv_gt(tv_old, tv_cur) && tv_diff_usec(tv_old, tv_cur) < 100000) /* 0.1 sec out of order is OK */ + if(tv_gt(tv_old, tv_cur) && tv_diff_usec(tv_old, tv_cur) > 1000) /* 0.001 sec out of order is OK */ //tmp->tv_usec < tv_old.tv_usec) { usleep(100000); diff --git a/ultragrid/src/video_display/dvs.c b/ultragrid/src/video_display/dvs.c index 231d63820..7abb1487d 100644 --- a/ultragrid/src/video_display/dvs.c +++ b/ultragrid/src/video_display/dvs.c @@ -122,7 +122,7 @@ void * openDVSLibrary() } else { path = strdup("../lib/"); } - if (stat("./" kLibName, &buf) == 0) + if (stat(path, &buf) == 0) handle = dlopen(path, RTLD_NOW|RTLD_GLOBAL); else handle = dlopen(kLibName, RTLD_NOW|RTLD_GLOBAL);