[PSDK][KS] IKsProcessingObject_fnProcessingObjectWork(): Fix mutex copypastas (#8288)

- ks.h: Add KsFilterReleaseProcessingMutex() declaration

- `IKsProcessingObject_fnProcessingObjectWork()`: Fix mutex copypastas

Addendum to commit c6b26fa452 (r50531).
CORE-19511
This commit is contained in:
Serge Gautherie
2025-08-08 23:35:56 +02:00
committed by GitHub
parent 57092f4990
commit f24b57378e
2 changed files with 10 additions and 3 deletions

View File

@@ -140,12 +140,12 @@ IKsProcessingObject_fnProcessingObjectWork(
if (KeGetCurrentIrql() == PASSIVE_LEVEL)
{
/* acquire processing mutex */
KeWaitForSingleObject(&This->ControlMutex, Executive, KernelMode, FALSE, NULL);
KeWaitForSingleObject(&This->ProcessingMutex, Executive, KernelMode, FALSE, NULL);
}
else
{
/* dispatch level processing */
if (KeReadStateMutex(&This->ControlMutex) == 0)
if (KeReadStateMutex(&This->ProcessingMutex) == 0)
{
/* some thread was faster */
DPRINT1("processing object too slow\n");
@@ -154,7 +154,7 @@ IKsProcessingObject_fnProcessingObjectWork(
/* acquire processing mutex */
TimeOut.QuadPart = 0LL;
Status = KeWaitForSingleObject(&This->ControlMutex, Executive, KernelMode, FALSE, &TimeOut);
Status = KeWaitForSingleObject(&This->ProcessingMutex, Executive, KernelMode, FALSE, &TimeOut);
if (Status == STATUS_TIMEOUT)
{

View File

@@ -5050,6 +5050,13 @@ KsFilterFactoryGetDevice(
return KsGetDevice((PVOID)FilterFactory);
}
_IRQL_requires_max_(PASSIVE_LEVEL)
KSDDKAPI
VOID
NTAPI
KsFilterReleaseProcessingMutex(
_In_ PKSFILTER Filter);
/* etc. */
#endif /* avstream */