avdevice/dshow: Cleanup also on av_log case

Fixes: CID1598550 Resource leak

Sponsored-by: Sovereign Tech Fund
Reviewed-by: Roger Pack <rogerdpack@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 25f9211bdd)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
release/6.1
Michael Niedermayer 7 months ago
parent 769d857430
commit d735717614
No known key found for this signature in database
GPG Key ID: B18E8928B3948D64
  1. 2
      libavdevice/dshow.c

@ -1000,7 +1000,7 @@ dshow_cycle_formats(AVFormatContext *avctx, enum dshowDeviceType devtype,
" ch=%2u, bits=%2u, rate=%6lu\n",
fx->nChannels, fx->wBitsPerSample, fx->nSamplesPerSec
);
continue;
goto next;
}
if (
(requested_sample_rate && requested_sample_rate != fx->nSamplesPerSec) ||

Loading…
Cancel
Save