mirror of
https://github.com/outbackdingo/UltraGrid.git
synced 2026-04-05 20:05:25 +00:00
DVS - load library also from ../lib, perf fix
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user