mirror of
https://github.com/obsproject/obs-studio.git
synced 2024-09-20 04:42:18 +02:00
win-ivcam: Fix potential null pointer dereference
This commit is contained in:
parent
2ae706782c
commit
61e2828036
@ -107,6 +107,12 @@ struct IVCamSource {
|
||||
void IVCamSource::CamThread()
|
||||
{
|
||||
pSegServer = SegServer::CreateServer();
|
||||
|
||||
if (!pSegServer) {
|
||||
warn("SegServer::CreateServer failed\n");
|
||||
return;
|
||||
}
|
||||
|
||||
SegServer::ServiceStatus status = pSegServer->Init();
|
||||
|
||||
if (status != SegServer::ServiceStatus::SERVICE_NO_ERROR) {
|
||||
|
Loading…
Reference in New Issue
Block a user