Commit 66db4ffa authored by Jean-Paul Saman's avatar Jean-Paul Saman

dvbpsi_decoder_t: do not check for dvbpsi_decoder_t::p_priv to be NULL.

It is the responsibility of the calling application to release dvbpsi_decoder_t::p_priv pointer
and its associated memory.
parent 9982ebce
......@@ -229,7 +229,7 @@ out:
void dvbpsi_decoder_delete(dvbpsi_decoder_t *p_decoder)
{
assert(p_decoder);
assert(p_decoder->p_priv == NULL);
if (p_decoder->p_sections)
{
......
......@@ -325,12 +325,14 @@ void *dvbpsi_decoder_new(dvbpsi_callback_gather_t pf_gather,
*****************************************************************************/
/*!
* \fn void dvbpsi_decoder_delete(dvbpsi_decoder_t *p_decoder);
* \brief Deletes decoder struct and frees its memory
* \brief Deletes decoder struct and frees any associated PSI section memory.
* Any memory attached to the dvbpsi_decoder_t::p_priv pointer member is the
* responsibility of the calling application.
* \param p_decoder pointer to dvbpsi_decoder_t with decoder
* \return nothing
*
* Delets a dvbpsi_t handle by calling free(handle). Make sure to detach any
* decoder of encoder before deleting the dvbpsi handle.
* decoder or encoder before deleting the dvbpsi handle.
*/
void dvbpsi_decoder_delete(dvbpsi_decoder_t *p_decoder);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment