mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-04-06 18:41:30 +03:00
rotate ID3D11Texture2D (#9772)
* Rotate ID3D11Texture2D after duplication with d3d11 video processor. * If display is not rotated, nothing will be created; If the rotation fails, it will use the old fallback logic TODO: * If changing from Landscape to Landscape(flipped) during capture, the resolution is not changed, video service fallback to gdi directly. Signed-off-by: 21pages <sunboeasy@gmail.com>
This commit is contained in:
@@ -971,6 +971,7 @@ fn handle_one_frame(
|
||||
}
|
||||
match e.to_string().as_str() {
|
||||
scrap::codec::ENCODE_NEED_SWITCH => {
|
||||
encoder.disable();
|
||||
log::error!("switch due to encoder need switch");
|
||||
bail!("SWITCH");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user