Bug 477866

Summary: Media Player applet reloads the cover art on opening
Product: [Plasma] plasmashell Reporter: Patrick Silva <bugseforuns>
Component: Media Player widgetAssignee: Plasma Bugs List <plasma-bugs-null>
Status: RESOLVED FIXED    
Severity: minor CC: kde, nate, qydwhotmail
Priority: NOR Keywords: qt6
Version First Reported In: 5.90.0   
Target Milestone: 1.0   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In: 6.0
Sentry Crash Report:
Attachments: screen recording

Description Patrick Silva 2023-12-01 20:46:43 UTC
Created attachment 163726 [details]
screen recording

STEPS TO REPRODUCE
1. play a video in youtube with an internet browser controllable by Media Player applet
2. click on the Media Player applet repeatedly
3. 

OBSERVED RESULT
at some point the cover art reloads unnecessarily when the Media Player applet opens. In the attached screen recording the bug occurs at 25 seconds.

EXPECTED RESULT
Media Player never reloads the cover art on opening

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 5.90.0
KDE Frameworks Version: 5.246.0
Qt Version: 6.6.1
Graphics Platform: Wayland
Comment 1 Nate Graham 2023-12-05 21:40:28 UTC
Can reproduce.
Comment 2 Bug Janitor Service 2023-12-06 15:37:43 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-workspace/-/merge_requests/3662
Comment 3 Fushan Wen 2023-12-12 01:14:35 UTC
Git commit 19c21597a16205e6a29f3f7a428818078cd742b5 by Fushan Wen.
Committed on 12/12/2023 at 01:48.
Pushed by fusionfuture into branch 'master'.

applets/mediacontroller: disable geometry timer when widget is not expanded

The geometry of the stack view will change during expansion, which
causes unnecessary reloading of the same image.
FIXED-IN: 6.0

M  +12   -4    applets/mediacontroller/package/contents/ui/AlbumArtStackView.qml
M  +6    -5    applets/mediacontroller/package/contents/ui/ExpandedRepresentation.qml

https://invent.kde.org/plasma/plasma-workspace/-/commit/19c21597a16205e6a29f3f7a428818078cd742b5