How to make a vendor-supplied AVStream allocator be selected

Hi OSR experts:

We want to use our own AVStream allocator and supply a KSALLOCATOR_DISPATCH structure that contains pointers to the following vendor-supplied callback routines:

  1. AVStrMiniInitializeAllocator
  2. AVStrMiniDeleteAllocator
  3. AVStrMiniAllocate
  4. AVStrMiniAllocatorFreeFrame

However, we did not see our “AVStrMiniInitializeAllocator” function callback getting called. Did we miss anything necessary?
In addition, we also tried to change the following requirement flags of AllocatorFraming member of the KSPIN_DESCRIPTOR_EX structure.

Requirement Flags:
a. KSALLOCATOR_REQUIREMENTF_INPLACE_MODIFIER
b. KSALLOCATOR_REQUIREMENTF_SYSTEM_MEMORY
c. KSALLOCATOR_REQUIREMENTF_FRAME_INTEGRITY
d. KSALLOCATOR_REQUIREMENTF_MUST_ALLOCATE
e. KSALLOCATOR_REQUIREMENTF_SYSTEM_MEMORY_CUSTOM_ALLOCATION
f. KSALLOCATOR_REQUIREMENTF_PREFERENCES_ONLY

Some combination has been tried but nothing happened, e.g.
I. KSALLOCATOR_REQUIREMENTF_MUST_ALLOCATE
II. KSALLOCATOR_REQUIREMENTF_SYSTEM_MEMORY_CUSTOM_ALLOCATION
III. KSALLOCATOR_REQUIREMENTF_MUST_ALLOCATE | KSALLOCATOR_REQUIREMENTF_SYSTEM_MEMORY_CUSTOM_ALLOCATION
IV. KSALLOCATOR_REQUIREMENTF_SYSTEM_MEMORY | KSALLOCATOR_REQUIREMENTF_SYSTEM_MEMORY_CUSTOM_ALLOCATION
V. KSALLOCATOR_REQUIREMENTF_SYSTEM_MEMORY | KSALLOCATOR_REQUIREMENTF_MUST_ALLOCATE

We know the allocator might or might not be used by the graph manager,
but our question is how to make a vendor-supplied AVStream allocator be selected?

Any advice would be much appreciated. Thanks.

Sincerely,
Zale Yu