microsoft / microsoft/Windows-classic-samples

MediaFoundation SinkWriter Handle leak

Open
#213 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
No language data
Stars
5.7k
Forks
3.3k
PR merge metrics
No merged PRs in 30d

Description

The recording function is implemented by referring to the Win7Samples\multimedia\mediafoundation\MFCaptureToFile code.
However, when I repeatedly start/stop recording on this sample, I get a handle leak.

I've seen it increase in task manager.

I suspect IMFSinkWriter.

If the handle is not cleaned in IMFSinkWriter, I hope that the latest version includes the MF modified version.

Can I get some hints on how to solve the related problem?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by comparing the recording function with Win7Samples\multimedia\mediafoundation\MFCaptureToFile and reproduce the leak by repeatedly starting and stopping recording. Use Task Manager to confirm handle growth and investigate the suspected IMFSinkWriter cleanup path. Done means identifying the leaking handle and documenting or correcting its cleanup behavior.

Written by the indexing model from the issue text.

Assessment

Domain
audio-video-rtc
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.