Fix video mode notifications.

This commit is contained in:
Peter Johnson
2017-01-05 01:42:19 -08:00
parent 23462ec7df
commit 3c3236c5d5
2 changed files with 4 additions and 6 deletions

View File

@@ -232,7 +232,7 @@ CS_Source CreateCvSource(llvm::StringRef name, const VideoMode& mode,
source->Start(); // causes a property event
notifier.NotifySource(name, handle, CS_SOURCE_CONNECTED);
notifier.NotifySource(name, handle, CS_SOURCE_VIDEOMODES_UPDATED);
notifier.NotifySource(name, handle, CS_SOURCE_VIDEOMODE_CHANGED);
notifier.NotifySourceVideoMode(*source, mode);
return handle;
}