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>
(cherry picked from commit 4c285bb278)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
2039e3cf80
commit
68d61b4eaf
1 changed files with 1 additions and 1 deletions
|
|
@ -1464,7 +1464,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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue