Skip to content

Commit b6d3423

Browse files
committed
Temporarily disable recent cache-in-ctor change.
1 parent c2afcd3 commit b6d3423

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

avs_core/core/cache.cpp

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -684,7 +684,8 @@ PVideoFrame __stdcall CacheGuard::GetFrame(int n, IScriptEnvironment* env_)
684684
*/
685685

686686
// do not create cache from inside Invoke (e.g. when calling GetFrame(0) from constructor during instantation)
687-
const bool chainedCtor = IEnv->GetInvokeStackSize() > 0;
687+
//const bool chainedCtor = IEnv->GetInvokeStackSize() > 0;
688+
const bool chainedCtor = false;
688689

689690
return GetCache(env, chainedCtor, child)->GetFrame(n, env);
690691
}
@@ -697,7 +698,9 @@ void __stdcall CacheGuard::GetAudio(void* buf, int64_t start, int64_t count, ISc
697698
ScopedCounter getframe_counter(IEnv->GetFrameRecursiveCount());
698699

699700
// do not create cache from inside Invoke (e.g. when calling GetFrame(0) from constructor during instantation)
700-
const bool chainedCtor = IEnv->GetInvokeStackSize() > 0;
701+
//const bool chainedCtor = IEnv->GetInvokeStackSize() > 0;
702+
const bool chainedCtor = false;
703+
701704
return GetCache(env, chainedCtor, child)->GetAudio(buf, start, count, env);
702705
}
703706

0 commit comments

Comments
 (0)