Fix -mmt= option for many handlers

The option is previously ignored by handlers used SetCoderProperties to
set number of threads.

Signed-off-by: Sergey G. Brester <serg.brester@sebres.de>
This commit is contained in:
sebres
2023-08-31 21:18:25 +02:00
committed by Tino Reichardt
parent 8f52579e9e
commit 9bb11a56b6

View File

@@ -203,8 +203,9 @@ HRESULT CMultiMethodProps::SetProperty(const wchar_t *nameSpec, const PROPVARIAN
{
HRESULT hres;
if (SetCommonProperty(name, value, hres))
return hres;
SetCommonProperty(name, value, hres);
/* don't return here, since many handlers set common properties (e. g. kNumThreads)
with SetCoderProperties, so add it also as prop by its ID from name below */
}
UInt32 number;
@@ -258,11 +259,9 @@ HRESULT CSingleMethodProps::SetProperty(const wchar_t *name2, const PROPVARIANT
}
{
HRESULT hres;
if (SetCommonProperty(name, value, hres))
{
// processed = true;
return S_OK;
}
SetCommonProperty(name, value, hres);
/* don't return here, since many handlers set common properties (e. g. kNumThreads)
with SetCoderProperties, so add it also as prop by its ID from name below */
}
RINOK(ParseMethodFromPROPVARIANT(name, value));
return S_OK;