Skip to content

Commit

Permalink
Clear error on windows camera no-fps fail
Browse files Browse the repository at this point in the history
  • Loading branch information
Starbuck5 committed Nov 19, 2023
1 parent 8bad874 commit 81c5367
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src_c/camera_windows.c
Original file line number Diff line number Diff line change
Expand Up @@ -410,6 +410,9 @@ _select_source_type(pgCameraObject *self, IMFMediaType **mp)
native_types[index], &MF_MT_FRAME_RATE, fps_max_ratio);
HANDLEHR(hr);
}
else {
hr = S_OK; /* clear error */
}

*mp = native_types[index];
goto cleanup;
Expand Down

0 comments on commit 81c5367

Please sign in to comment.