mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-07-25 15:04:57 +00:00
Do not exit fullscreen mode when applying video quality
This commit is contained in:
@@ -4817,11 +4817,14 @@ void OverlayWidget::applyVideoQuality(VideoQuality value) {
|
||||
}
|
||||
_streamingStartPaused = _streamedQualityChangeFinished
|
||||
|| (_streamed && _streamed->instance.player().paused());
|
||||
const auto wasFullScreen = _fullScreenVideo;
|
||||
clearStreaming();
|
||||
const auto time = _streamedPosition;
|
||||
const auto startStreaming = StartStreaming(false, time);
|
||||
if (!canInitStreaming() || !initStreaming(startStreaming)) {
|
||||
redisplayContent();
|
||||
} else {
|
||||
_fullScreenVideo = wasFullScreen;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user