summaryrefslogtreecommitdiffstats
path: root/libavfilter/vsrc_gfxcapture_winrt.cpp
diff options
context:
space:
mode:
authorTimo Rothenpieler <[email protected]>2025-09-17 19:12:53 +0200
committerTimo Rothenpieler <[email protected]>2025-09-18 01:04:59 +0000
commit23d9412ff9598b8989072e53d5474a41d2f14042 (patch)
tree4fd41fc05838f198a54cd3e00ebfb01a47b3caef /libavfilter/vsrc_gfxcapture_winrt.cpp
parent983fed34f8172228c2e5490882531668d9d35105 (diff)
avfilter/vsrc_gfxcapture: fix re-using ret variable from outside of lambda scope
Diffstat (limited to 'libavfilter/vsrc_gfxcapture_winrt.cpp')
-rw-r--r--libavfilter/vsrc_gfxcapture_winrt.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/libavfilter/vsrc_gfxcapture_winrt.cpp b/libavfilter/vsrc_gfxcapture_winrt.cpp
index b037dc89aa..ade14d297f 100644
--- a/libavfilter/vsrc_gfxcapture_winrt.cpp
+++ b/libavfilter/vsrc_gfxcapture_winrt.cpp
@@ -1394,9 +1394,9 @@ static int process_frame_if_exists(AVFilterLink *outlink)
ComPtr<ID3D11Texture2D> frame_texture;
TimeSpan frame_time = { 0 };
- ret = wgc_try_get_next_frame(avctx, capture_frame);
- if (ret < 0)
- return ret;
+ int res = wgc_try_get_next_frame(avctx, capture_frame);
+ if (res < 0)
+ return res;
CHECK_HR_RET(capture_frame->get_SystemRelativeTime(&frame_time));