Free memory allocated by GetStreamCaps

Bug: webrtc:14343
Change-Id: I5ac7fee900d27b07bd908f778ffffd0b7d982ca9
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/288260
Reviewed-by: Per Kjellander <perkj@webrtc.org>
Commit-Queue: Sergey Silkin <ssilkin@webrtc.org>
Cr-Commit-Position: refs/heads/main@{#38945}
This commit is contained in:
Sergey Silkin 2022-12-15 14:56:02 +01:00 committed by WebRTC LUCI CQ
parent 5e5d017c2b
commit d29b12f90c

View File

@ -235,8 +235,13 @@ int32_t VideoCaptureDS::SetCameraOutput(
// Check if this is a DV camera and we need to add MS DV Filter
if (pmt->subtype == MEDIASUBTYPE_dvsl ||
pmt->subtype == MEDIASUBTYPE_dvsd || pmt->subtype == MEDIASUBTYPE_dvhd)
pmt->subtype == MEDIASUBTYPE_dvsd ||
pmt->subtype == MEDIASUBTYPE_dvhd) {
isDVCamera = true; // This is a DV camera. Use MS DV filter
}
FreeMediaType(pmt);
pmt = NULL;
}
RELEASE_AND_CLEAR(streamConfig);