cleanup
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18792 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -663,7 +663,8 @@ printf("video decode start\n");
|
|||||||
break;
|
break;
|
||||||
goto wait;
|
goto wait;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if 0
|
||||||
bigtime_t waituntil;
|
bigtime_t waituntil;
|
||||||
bigtime_t waitdelta;
|
bigtime_t waitdelta;
|
||||||
char test[100];
|
char test[100];
|
||||||
@@ -672,22 +673,22 @@ printf("video decode start\n");
|
|||||||
|
|
||||||
waituntil = fTimeSourceSysTime - fTimeSourcePerfTime + buffer->startTime;
|
waituntil = fTimeSourceSysTime - fTimeSourcePerfTime + buffer->startTime;
|
||||||
waitdelta = waituntil - system_time();
|
waitdelta = waituntil - system_time();
|
||||||
/*
|
|
||||||
sprintf(test, "sys %.6f perf %.6f, vid %.6f, waituntil %.6f, waitdelta %.6f",
|
sprintf(test, "sys %.6f perf %.6f, vid %.6f, waituntil %.6f, waitdelta %.6f",
|
||||||
fTimeSourceSysTime / 1000000.0f,
|
fTimeSourceSysTime / 1000000.0f,
|
||||||
fTimeSourcePerfTime / 1000000.0f,
|
fTimeSourcePerfTime / 1000000.0f,
|
||||||
buffer->startTime / 1000000.0f,
|
buffer->startTime / 1000000.0f,
|
||||||
waituntil / 1000000.0f,
|
waituntil / 1000000.0f,
|
||||||
waitdelta / 1000000.0f);
|
waitdelta / 1000000.0f);
|
||||||
*/
|
|
||||||
// if (status != B_TIMED_OUT)
|
|
||||||
}
|
}
|
||||||
/*
|
|
||||||
if (fVideoView->LockLooperWithTimeout(5000) == B_OK) {
|
if (fVideoView->LockLooperWithTimeout(5000) == B_OK) {
|
||||||
fVideoView->Window()->SetTitle(test);
|
fVideoView->Window()->SetTitle(test);
|
||||||
fVideoView->UnlockLooper();
|
fVideoView->UnlockLooper();
|
||||||
}
|
}
|
||||||
*/
|
#else
|
||||||
|
bigtime_t waituntil;
|
||||||
|
waituntil = fTimeSourceSysTime - fTimeSourcePerfTime + buffer->startTime;
|
||||||
|
#endif
|
||||||
|
|
||||||
status = acquire_sem_etc(fThreadWaitSem, 1, B_ABSOLUTE_TIMEOUT, waituntil);
|
status = acquire_sem_etc(fThreadWaitSem, 1, B_ABSOLUTE_TIMEOUT, waituntil);
|
||||||
if (status != B_TIMED_OUT)
|
if (status != B_TIMED_OUT)
|
||||||
break;
|
break;
|
||||||
|
|||||||
Reference in New Issue
Block a user