[haiku-commits] Re: haiku: hrev49589 - in src: servers/media bin/desklink kits/media

  • From: Dario Casalinuovo <b.vitruvio@xxxxxxxxx>
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Fri, 28 Aug 2015 20:59:07 +0200


Seems you still don't get it though, there is already a global
instance to track the roster instance and no need to keep a reference
in a class instance.


I know, and in certain cases it's also more safer, but nowadays i'm trying
to keep the BMediaRoster instance valid in the entire team life, since it
caused problems of locking the Deskbar as the pulse run every half second i
thought it was better to exclude the possibility of BMediaRoster::Roster
called for the infinite in cases where there's an anomaly such as it not
reconnecting. I've already solved this issue in another way, but nothing
exclude that in future it will happen another time. The only alternative is
to use CurrentRoster() and check if it's NULL, if you prefer this let me
know and i'll do it.

--
Saluti,
Dario

Other related posts: