aboutsummaryrefslogtreecommitdiffstats
path: root/libavdevice
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2024-05-27 01:52:25 +0200
committerMichael Niedermayer <michael@niedermayer.cc>2024-07-02 21:57:22 +0200
commit4c285bb2789667bcf014ede8b0ab06ebbbee833f (patch)
tree7545e4681e28a304be4e9107bab6bf88cb98d684 /libavdevice
parent86cd7c68bc65df6703391f0cdcdbf7c57d6c4780 (diff)
downloadffmpeg-4c285bb2789667bcf014ede8b0ab06ebbbee833f.tar.gz
avdevice/dshow: Check ICaptureGraphBuilder2_SetFiltergraph() for failure
Fixes: CID1591939 Logically dead code Sponsored-by: Sovereign Tech Fund Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavdevice')
-rw-r--r--libavdevice/dshow.c2
1 files changed, 1 insertions, 1 deletions
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;