Do not change resolution on resume when current session is using virtual display
This commit is contained in:
@@ -1152,10 +1152,10 @@ namespace nvhttp {
|
|||||||
}
|
}
|
||||||
auto launch_session = make_launch_session(host_audio, 0, args, named_cert_p);
|
auto launch_session = make_launch_session(host_audio, 0, args, named_cert_p);
|
||||||
|
|
||||||
if (no_active_sessions) {
|
if (no_active_sessions && !proc::proc.virtual_display) {
|
||||||
// We want to prepare display only if there are no active sessions at
|
// We want to prepare display only if there are no active sessions
|
||||||
// the moment. This should be done before probing encoders as it could
|
// and the current session isn't virtual display at the moment.
|
||||||
// change the active displays.
|
// This should be done before probing encoders as it could change the active displays.
|
||||||
display_device::configure_display(config::video, *launch_session);
|
display_device::configure_display(config::video, *launch_session);
|
||||||
|
|
||||||
// Probe encoders again before streaming to ensure our chosen
|
// Probe encoders again before streaming to ensure our chosen
|
||||||
|
|||||||
Reference in New Issue
Block a user