-
Notifications
You must be signed in to change notification settings - Fork 0
Fix aja in not working correctly in linux & device lock issues in windows #14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: dev
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -1071,18 +1071,20 @@ bool AJADevice::AcquireDevice() | |
| if (GetStreamingApplication(curAppFourCC, curPid)) | ||
| { | ||
| if (curPid == nosPid) | ||
| return true; | ||
| auto curApp = FourCCToString(curAppFourCC); | ||
| if (curPid != 0) | ||
| nosEngine.LogW("Device %s is already acquired by application %s (PID %d). Trying to reclaim it.", GetDisplayName().c_str(), curApp.c_str(), curPid); | ||
| { | ||
| auto curApp = FourCCToString(curAppFourCC); | ||
| if (curPid != 0) | ||
| nosEngine.LogW("Device %s is already acquired by application %s (PID %d). Trying to reclaim it.", GetDisplayName().c_str(), curApp.c_str(), curPid); | ||
| } | ||
| } | ||
|
|
||
| if (!AcquireStreamForApplication(NOS_FOURCC, nosPid)) | ||
| if (!AcquireStreamForApplicationWithReference(NOS_FOURCC, nosPid)) | ||
| { | ||
| nosEngine.LogE("Failed to acquire device %s for Nodos.", GetDisplayName().c_str()); | ||
| return false; | ||
| } | ||
| nosEngine.LogD("Device %s acquired by Nodos.", GetDisplayName().c_str()); | ||
| if(nosPid != curPid) | ||
| nosEngine.LogD("Device %s acquired by Nodos.", GetDisplayName().c_str()); | ||
|
Comment on lines
1071
to
+1087
|
||
| return true; | ||
| } | ||
|
|
||
|
|
@@ -1106,7 +1108,7 @@ void AJADevice::ReleaseDevice() | |
| return; | ||
| } | ||
|
|
||
| if (ReleaseStreamForApplication(NOS_FOURCC, nosPid)) | ||
| if (ReleaseStreamForApplicationWithReference(NOS_FOURCC, nosPid)) | ||
| nosEngine.LogD("Device %s released by Nodos", GetDisplayName().c_str()); | ||
| else | ||
| nosEngine.LogE("Failed to release device %s", GetDisplayName().c_str()); | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.