mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-12-23 22:31:46 +00:00
[c-host] app: fix deadlock on reinit
This commit is contained in:
parent
f572a72c2a
commit
22dcb39adb
1 changed files with 5 additions and 1 deletions
|
@ -86,6 +86,7 @@ static int frameThread(void * opaque)
|
||||||
{
|
{
|
||||||
if (!os_waitEvent(app.frameEvent) || !app.running)
|
if (!os_waitEvent(app.frameEvent) || !app.running)
|
||||||
break;
|
break;
|
||||||
|
DEBUG_INFO("Frame");
|
||||||
|
|
||||||
CaptureFrame frame;
|
CaptureFrame frame;
|
||||||
frame.data = app.frame[frameIndex];
|
frame.data = app.frame[frameIndex];
|
||||||
|
@ -288,7 +289,10 @@ int app_main()
|
||||||
exitcode = -1;
|
exitcode = -1;
|
||||||
goto finish;
|
goto finish;
|
||||||
}
|
}
|
||||||
break;
|
|
||||||
|
// start signalled
|
||||||
|
os_signalEvent(app.updateEvent);
|
||||||
|
continue;
|
||||||
|
|
||||||
case CAPTURE_RESULT_ERROR:
|
case CAPTURE_RESULT_ERROR:
|
||||||
DEBUG_ERROR("Capture interface reported a fatal error");
|
DEBUG_ERROR("Capture interface reported a fatal error");
|
||||||
|
|
Loading…
Reference in a new issue