[haiku-bugs] [Haiku] #15221: MediaPlayer playlist should not recalculate file metadata in Draw()

  • From: "Haiku" <trac@xxxxxxxxxxxx>
  • To: undisclosed-recipients: ;
  • Date: Fri, 02 Aug 2019 19:59:53 -0000

#15221: MediaPlayer playlist should not recalculate file metadata in Draw()
--------------------------------------+------------------------------
 Reporter:  KapiX                     |        Owner:  stippi
     Type:  bug                       |       Status:  new
 Priority:  normal                    |    Milestone:  Unscheduled
Component:  Applications/MediaPlayer  |      Version:  R1/Development
 Keywords:                            |   Blocked By:
 Blocking:                            |  Has a Patch:  0
 Platform:  All                       |
--------------------------------------+------------------------------
 PlaylistItem tries to cache metadata using attributes, but that doesn't
 work on read-only volumes. This leads playlist to reopen the file each
 time it wants to Draw an item, which sometimes blocks playlist window for
 a few seconds.

 Item::Duration() - https://git.haiku-
 os.org/haiku/tree/src/apps/mediaplayer/playlist/PlaylistItem.cpp#n145

 Item::Draw() - https://git.haiku-
 os.org/haiku/tree/src/apps/mediaplayer/playlist/PlaylistListView.cpp#n137

-- 
Ticket URL: <https://dev.haiku-os.org/ticket/15221>
Haiku <https://dev.haiku-os.org>
The Haiku operating system.

Other related posts: