Commit 6ed4201b authored by Jean-Paul Saman's avatar Jean-Paul Saman

src/demux.c: send error message (Fixes CID #134924)

The function dvbpsi_DetachDemux(), which is now a wrapper around dvbpsi_chain_demux_delete()
failed to check the return value. Now it returns an error message when the return value is 'false'.
parent 476a525a
......@@ -97,7 +97,8 @@ void dvbpsi_DetachDemux(dvbpsi_t *p_dvbpsi)
assert(p_dvbpsi);
assert(p_dvbpsi->p_decoder);
dvbpsi_chain_demux_delete(p_dvbpsi);
if (!dvbpsi_chain_demux_delete(p_dvbpsi))
dvbpsi_error(p_dvbpsi, "demux", "could not free chain_demux decoder resources");
}
/*****************************************************************************
......
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