Results 1 to 2 of 2

Thread: OMX IL: FreeBuffer always called before ComponentDeInit?

  1. #1
    Junior Member
    Join Date
    May 2008
    Location
    UK
    Posts
    23

    OMX IL: FreeBuffer always called before ComponentDeInit?

    Hi,

    Can an OMX component assume that the IL client will always call FreeBuffer for all buffers that the component has been told about with UseBuffer or allocated with AllocateBuffer? Specifically, if the component transitions itself into the Invalid state, should it expect the client to call FreeBuffer for all buffers before it calls ComponentDeInit?

    Thanks
    Phil

  2. #2
    Member
    Join Date
    May 2008
    Location
    California, USA
    Posts
    51

    Re: OMX IL: FreeBuffer always called before ComponentDeInit?

    Quote Originally Posted by pedwo
    Can an OMX component assume that the IL client will always call FreeBuffer for all buffers that the component has been told about with UseBuffer or allocated with AllocateBuffer
    The spec doesn't look to say anything to the contrary, so the IL client must have freed the buffers.
    Quote Originally Posted by pedwo
    Specifically, if the component transitions itself into the Invalid state, should it expect the client to call FreeBuffer for all buffers before it calls ComponentDeInit?
    Personally, I really don't like the invalid state. I'd be very unhappy with a component that ever transitioned to it.

    Basically, all bets are off. The spec says:
    Quote Originally Posted by IL 1.1.1.
    The IL client shall stop, de-initialize, unload, and reload the component when the IL client detects an invalid state
    Which specifically doesn't mention freeing buffers. (I assume that the stop refers to the IL client, not the component). You may have memory leaks, but the component has already admitted that it's rubbish by entering the invalid state in the first place.

    Thanks,

    Roger
    Roger Nixon, Broadcom Corporation

Similar Threads

  1. Replies: 3
    Last Post: 10-24-2008, 08:59 AM
  2. Replies: 1
    Last Post: 01-01-1970, 12:00 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •