[FFmpeg-cvslog] avdevice/dshow: Check ICaptureGraphBuilder2_SetFiltergraph() for failure
Michael Niedermayer
git at videolan.org
Tue Jul 2 23:01:14 EEST 2024
ffmpeg | branch: master | Michael Niedermayer <michael at niedermayer.cc> | Mon May 27 01:52:25 2024 +0200| [4c285bb2789667bcf014ede8b0ab06ebbbee833f] | committer: Michael Niedermayer
avdevice/dshow: Check ICaptureGraphBuilder2_SetFiltergraph() for failure
Fixes: CID1591939 Logically dead code
Sponsored-by: Sovereign Tech Fund
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=4c285bb2789667bcf014ede8b0ab06ebbbee833f
---
libavdevice/dshow.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavdevice/dshow.c b/libavdevice/dshow.c
index eb98c57b09..dce41e80c6 100644
--- a/libavdevice/dshow.c
+++ b/libavdevice/dshow.c
@@ -1465,7 +1465,7 @@ dshow_open_device(AVFormatContext *avctx, ICreateDevEnum *devenum,
av_log(avctx, AV_LOG_ERROR, "Could not create CaptureGraphBuilder2\n");
goto error;
}
- ICaptureGraphBuilder2_SetFiltergraph(graph_builder2, graph);
+ r = ICaptureGraphBuilder2_SetFiltergraph(graph_builder2, graph);
if (r != S_OK) {
av_log(avctx, AV_LOG_ERROR, "Could not set graph for CaptureGraphBuilder2\n");
goto error;
More information about the ffmpeg-cvslog
mailing list