Skip to content

Commit

Permalink
New release with new DLL files (#33)
Browse files Browse the repository at this point in the history
Capture filter DLLs renamed from "UnityCaptureFilter32bit.dll" and "UnityCaptureFilter64bit.dll" to "UnityCaptureFilter32.dll" and "UnityCaptureFilter64.dll". This new release which includes 2eabf0f should not cause deadlocks when used in software like OBS anymore. A new DLL name is used because the old names are now in a block list in OBS due to the faulty behavior of the old version.
  • Loading branch information
schellingb committed Apr 14, 2023
1 parent 7a3278d commit 3ed54c3
Show file tree
Hide file tree
Showing 10 changed files with 15 additions and 10 deletions.
4 changes: 2 additions & 2 deletions Install/Install.bat
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@ if '%errorlevel%' NEQ '0' (
:gotAdmin
pushd "%CD%"
CD /D "%~dp0"
regsvr32 "UnityCaptureFilter32bit.dll"
regsvr32 "UnityCaptureFilter64bit.dll"
regsvr32 "UnityCaptureFilter32.dll"
regsvr32 "UnityCaptureFilter64.dll"
:--------------------------------------
4 changes: 2 additions & 2 deletions Install/InstallCustomName.bat
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ if '%errorlevel%' NEQ '0' (
CD /D "%~dp0"
set /P "UCCAPNAME=Enter a custom filter name to register as (default is 'Unity Video Capture'): "
echo Installing capture device named '%UCCAPNAME%' ...
regsvr32 "UnityCaptureFilter32bit.dll" "/i:UnityCaptureName=%UCCAPNAME%"
regsvr32 "UnityCaptureFilter64bit.dll" "/i:UnityCaptureName=%UCCAPNAME%"
regsvr32 "UnityCaptureFilter32.dll" "/i:UnityCaptureName=%UCCAPNAME%"
regsvr32 "UnityCaptureFilter64.dll" "/i:UnityCaptureName=%UCCAPNAME%"
echo "Done"
:--------------------------------------
4 changes: 2 additions & 2 deletions Install/InstallMultipleDevices.bat
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ if '%errorlevel%' NEQ '0' (
CD /D "%~dp0"
set /P "UCNUMCAP=Enter number of capture devices you want to register: "
echo "Installing %UCNUMCAP% capture devices ..."
regsvr32 "UnityCaptureFilter32bit.dll" "/i:UnityCaptureDevices=%UCNUMCAP%"
regsvr32 "UnityCaptureFilter64bit.dll" "/i:UnityCaptureDevices=%UCNUMCAP%"
regsvr32 "UnityCaptureFilter32.dll" "/i:UnityCaptureDevices=%UCNUMCAP%"
regsvr32 "UnityCaptureFilter64.dll" "/i:UnityCaptureDevices=%UCNUMCAP%"
echo "Done"
:--------------------------------------
4 changes: 2 additions & 2 deletions Install/Uninstall.bat
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@ if '%errorlevel%' NEQ '0' (
:gotAdmin
pushd "%CD%"
CD /D "%~dp0"
regsvr32 /u "UnityCaptureFilter32bit.dll"
regsvr32 /u "UnityCaptureFilter64bit.dll"
regsvr32 /u "UnityCaptureFilter32.dll"
regsvr32 /u "UnityCaptureFilter64.dll"
:--------------------------------------
Binary file not shown.
Binary file not shown.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@ The script `Install.bat` registers just a single capture device usable for captu
capture multiple cameras simultaneously you can instead run the `InstallMultipleDevices.bat` script which prompts for a
number of capture devices you wish to register.

### Update

When updating from a version from before April 2023 it is recommended to uninstall the old version first.
The old version is available [`here`](../../archive/7a3278dcefe37544370226e92bdfd60140434045.zip).


## Test in Unity

Expand Down
4 changes: 2 additions & 2 deletions Source/UnityCaptureFilter.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<PropertyGroup>
<TargetName Condition="'$(Platform)'=='x64'">UnityCaptureFilter64bit</TargetName>
<TargetName Condition="'$(Platform)'=='Win32'">UnityCaptureFilter32bit</TargetName>
<TargetName Condition="'$(Platform)'=='x64'">UnityCaptureFilter64</TargetName>
<TargetName Condition="'$(Platform)'=='Win32'">UnityCaptureFilter32</TargetName>
<OutDir>Build\$(Configuration)-$(TargetName)\</OutDir>
<IntDir>$(OutDir)</IntDir>
<GenerateManifest>false</GenerateManifest>
Expand Down
Binary file not shown.
Binary file not shown.

0 comments on commit 3ed54c3

Please sign in to comment.