Closed damirstuhec closed 4 years ago
This line assumes there are always two capture session connections available, which is not always true, resulting in a crash.
This PR fixes the issue by taking the last connection, and setting the orientation on it if the connection supports video orientations.
Fixes #8.
Thank you!
This line assumes there are always two capture session connections available, which is not always true, resulting in a crash.
This PR fixes the issue by taking the last connection, and setting the orientation on it if the connection supports video orientations.