message: Free memory allocated by GetStreamCaps
  Cr-Commit-Position: refs/heads/main@{#38945}
diff: @@ -235,9 +235,14 @@ 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);
  if (FAILED(hr)) {
  