[totem/wip/hadess/fix-logo-audio-only] backend: Fix the logo not showing when there's no cover
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [totem/wip/hadess/fix-logo-audio-only] backend: Fix the logo not showing when there's no cover
- Date: Wed, 5 May 2021 16:18:08 +0000 (UTC)
commit 626340faccf718b947ec944c3176732d1d1dd77c
Author: Bastien Nocera <hadess hadess net>
Date: Wed May 5 18:09:16 2021 +0200
backend: Fix the logo not showing when there's no cover
When playing audio-only, we would only try to draw an image when there
was a cover, which means we never saw the application logo as a filler.
Fixes: c0eb016979
src/backend/bacon-video-widget.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
---
diff --git a/src/backend/bacon-video-widget.c b/src/backend/bacon-video-widget.c
index f17469a61..baffe7f23 100644
--- a/src/backend/bacon-video-widget.c
+++ b/src/backend/bacon-video-widget.c
@@ -697,8 +697,7 @@ set_current_actor (BaconVideoWidget *bvw)
/* If there's only audio and no visualisation, draw the logo as well.
* If we have a cover image to display, we display it regardless of whether we're
* doing visualisations. */
- draw_logo = bvw->media_has_audio &&
- !bvw->media_has_video && bvw->cover_pixbuf;
+ draw_logo = bvw->media_has_audio && !bvw->media_has_video;
if (bvw->logo_mode || draw_logo) {
const GdkPixbuf *pixbuf;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]