History

avdevice/dshow: Check ICaptureGraphBuilder2_SetFiltergraph() for failure

Fixes: CID1591939 Logically dead code

Michael Niedermayer committed 2 years ago

Commit 4c285bb1 parent 86cd7c61 file · +1 −1Browse files

Unified · Split

libavdevice/dshow.c+1−1
@@ -1465,7 +1465,7 @@ dshow_open_device(AVFormatContext *avctx, ICreateDevEnum *devenum, · 1464 unmodified lines
14651465 av_log(avctx, AV_LOG_ERROR, "Could not create CaptureGraphBuilder2\n");
14661466 goto error;
14671467 }
1468− ICaptureGraphBuilder2_SetFiltergraph(graph_builder2, graph);
1468+ r = ICaptureGraphBuilder2_SetFiltergraph(graph_builder2, graph);
14691469 if (r != S_OK) {
14701470 av_log(avctx, AV_LOG_ERROR, "Could not set graph for CaptureGraphBuilder2\n");
14711471 goto error;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t