Share via

VMR9 memory growth

Rayman Lu 21 Reputation points
2021-01-25T03:51:24.52+00:00

Hello,
I'm running example which is "Windows-classic-samples\Samples\Win7Samples\multimedia\directshow\vmr9\vmrplayer".
Whenever I change a video file, the memory increases.

How to use code to solve the problem of memory increase in the example.

Initial state
59988-image.png

Play the 1st video file and close.
59929-image.png
Play the 2nd video file and close.
60029-image.png

Windows development | Windows API - Win32
Developer technologies | C++
Developer technologies | C++

A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.


Answer accepted by question author

Castorix31 91,876 Reputation points
2021-01-25T09:45:15.923+00:00

There is a bug in RemoveUnconnectedFilters function
SAFE_RELEASE(pFilter); is not at right place
It should be added before continue and after RemoveFilter
(I tested on Windows 10 and the memory did not increase anymore)

Was this answer helpful?

1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.