[haiku-bugs] Re: [Haiku] #16031: MediaPlayer uses too much RAM?

  • From: "Haiku" <trac@xxxxxxxxxxxx>
  • To: undisclosed-recipients: ;
  • Date: Wed, 03 Jun 2020 19:23:58 -0000

#16031: MediaPlayer uses too much RAM?
-----------------------------+----------------------------
  Reporter:  miqlas          |      Owner:  nobody
      Type:  bug             |     Status:  new
  Priority:  normal          |  Milestone:  Unscheduled
 Component:  Kits/Media Kit  |    Version:  R1/Development
Resolution:                  |   Keywords:
Blocked By:                  |   Blocking:
  Platform:  All             |
-----------------------------+----------------------------
Comment (by ttcoder):

 Makes sense. The e.g. {{{return B_LAST_BUFFER_ERROR;}}} statement short
 circuits a bunch of stuff, including e.g. {{{if (loadingChunkStatus ==
 B_LAST_BUFFER_ERROR) return _FushOneVideoFrameFromDecoderBuffer();}}} and
 one needs to dig deep to know what ffmpeg routine to call when. The usual
 ffmpeg gimmickery... Wish they'd have written ffmpeg as object-oriented
 code sigh.

 If no one beats me to it (:-/), after beta2 is released I'll set up an HDD
 (instead of just USB stick) partition to play with, and setup the usual
 leak_check_analyser.sh test routine to collect more data, this generally
 allows to save quite some debugging time.

 PS - haven't seen anyone test RAM usage on other media apps, but there's
 been no relevant MediaPlayer change that I remember, so I'll bet it's not
 the culprit and ffmpeg/add-on must be the culprit, as was the case
 numerous times before.
-- 
Ticket URL: <https://dev.haiku-os.org/ticket/16031#comment:6>
Haiku <https://dev.haiku-os.org>
The Haiku operating system.

Other related posts: