[haiku-bugs] Re: [Haiku] #13425: MediaExtractor for BUrl crashes on delete

  • From: "Barrett" <trac@xxxxxxxxxxxx>
  • Date: Tue, 11 Apr 2017 22:42:36 -0000

#13425: MediaExtractor for BUrl crashes on delete
------------------------------+----------------------------
   Reporter:  fishpond        |      Owner:  Barrett
       Type:  bug             |     Status:  new
   Priority:  normal          |  Milestone:  Unscheduled
  Component:  Kits/Media Kit  |    Version:  R1/Development
 Resolution:                  |   Keywords:
 Blocked By:                  |   Blocking:
Has a Patch:  0               |   Platform:  All
------------------------------+----------------------------

Comment (by Barrett):

 Hi, the ownership of the source is exactly the opposite, when an entry_ref
 or a BUrl is used, then BMediaFile automatically delete it (this is
 because the stream is created internally). If it's a client-supplied
 BPositionIO, it's not owned by the BMediaFile.

 I don't follow completely the issue you are having, can you upload a debug
 report?

 Are you using MediaExtractor directly?

 I'd bet it's mostly an on-exit synchronization issue. The cleanest
 solution might be to move the ownership to the extractor, but this should
 be done properly.

--
Ticket URL: <https://dev.haiku-os.org/ticket/13425#comment:3>
Haiku <https://dev.haiku-os.org>
The Haiku operating system.

Other related posts: