mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Don't use shared video cover in viewer.
This commit is contained in:
parent
e38998214f
commit
bc8bf672b4
1 changed files with 5 additions and 1 deletions
|
@ -332,6 +332,7 @@ struct OverlayWidget::Streamed {
|
||||||
std::unique_ptr<PlaybackControls> controls;
|
std::unique_ptr<PlaybackControls> controls;
|
||||||
std::unique_ptr<base::PowerSaveBlocker> powerSaveBlocker;
|
std::unique_ptr<base::PowerSaveBlocker> powerSaveBlocker;
|
||||||
|
|
||||||
|
bool ready = false;
|
||||||
bool withSound = false;
|
bool withSound = false;
|
||||||
bool pausedBySeek = false;
|
bool pausedBySeek = false;
|
||||||
bool resumeOnCallEnd = false;
|
bool resumeOnCallEnd = false;
|
||||||
|
@ -1107,7 +1108,9 @@ bool OverlayWidget::showCopyMediaRestriction(bool skipPRemiumCheck) {
|
||||||
}
|
}
|
||||||
|
|
||||||
bool OverlayWidget::videoShown() const {
|
bool OverlayWidget::videoShown() const {
|
||||||
return _streamed && !_streamed->instance.info().video.cover.isNull();
|
return _streamed
|
||||||
|
&& _streamed->ready
|
||||||
|
&& !_streamed->instance.info().video.cover.isNull();
|
||||||
}
|
}
|
||||||
|
|
||||||
QSize OverlayWidget::videoSize() const {
|
QSize OverlayWidget::videoSize() const {
|
||||||
|
@ -3951,6 +3954,7 @@ void OverlayWidget::initStreamingThumbnail() {
|
||||||
}
|
}
|
||||||
|
|
||||||
void OverlayWidget::streamingReady(Streaming::Information &&info) {
|
void OverlayWidget::streamingReady(Streaming::Information &&info) {
|
||||||
|
_streamed->ready = true;
|
||||||
if (videoShown()) {
|
if (videoShown()) {
|
||||||
applyVideoSize();
|
applyVideoSize();
|
||||||
_streamedQualityChangeFrame = QImage();
|
_streamedQualityChangeFrame = QImage();
|
||||||
|
|
Loading…
Add table
Reference in a new issue