[haiku-bugs] Re: [Haiku] #11213: [media_addon_server] crashes in BTimeSource::GetTime ()

  • From: "korli" <trac@xxxxxxxxxxxx>
  • Date: Thu, 11 Sep 2014 09:00:11 -0000

#11213: [media_addon_server] crashes in BTimeSource::GetTime ()
------------------------------------------+----------------------------
   Reporter:  diver                       |      Owner:  axeld
       Type:  bug                         |     Status:  new
   Priority:  normal                      |  Milestone:  R1
  Component:  Servers/media_addon_server  |    Version:  R1/Development
 Resolution:                              |   Keywords:
 Blocked By:                              |   Blocking:  11228
Has a Patch:  0                           |   Platform:  All
------------------------------------------+----------------------------

Comment (by korli):

 MultiAudioNode::NodeRegistered() uses BTimeSource::Now(), though
 BTimeSource::FinishCreate() has not yet been called. Questions:
 * is it OK to use the timesource in NodeRegistered()?
 * if yes, should BTimesource simply avoid crashing? Or should
 FinishCreate() be called before NodeRegistered()

 It's probably OK to push parameters change with a zero performance time on
 node registration, this would fix this bug.

--
Ticket URL: <https://dev.haiku-os.org/ticket/11213#comment:2>
Haiku <https://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: