mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-12-22 13:52:57 +00:00
[host] windows: fix crash on failure to init a capture interface
This commit is contained in:
parent
d5b32225f4
commit
da820769e8
1 changed files with 3 additions and 2 deletions
|
@ -894,10 +894,10 @@ int app_main(int argc, char * argv[])
|
||||||
CaptureInterface * iface = NULL;
|
CaptureInterface * iface = NULL;
|
||||||
for(int i = 0; CaptureInterfaces[i]; ++i)
|
for(int i = 0; CaptureInterfaces[i]; ++i)
|
||||||
{
|
{
|
||||||
iface = CaptureInterfaces[i];
|
if (*ifaceName && strcasecmp(ifaceName, CaptureInterfaces[i]->shortName))
|
||||||
if (*ifaceName && strcasecmp(ifaceName, iface->shortName))
|
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
iface = CaptureInterfaces[i];
|
||||||
DEBUG_INFO("Trying : %s", iface->getName());
|
DEBUG_INFO("Trying : %s", iface->getName());
|
||||||
|
|
||||||
if (!iface->create(
|
if (!iface->create(
|
||||||
|
@ -1066,6 +1066,7 @@ fail:
|
||||||
stopThreads();
|
stopThreads();
|
||||||
captureStop();
|
captureStop();
|
||||||
app.iface->free();
|
app.iface->free();
|
||||||
|
|
||||||
LG_LOCK_FREE(app.pointerLock);
|
LG_LOCK_FREE(app.pointerLock);
|
||||||
|
|
||||||
fail_lgmp:
|
fail_lgmp:
|
||||||
|
|
Loading…
Reference in a new issue