Commit 7e6b5cd7 authored by Jean-Paul Saman's avatar Jean-Paul Saman

dvbinfo: fix inverted logic

parent 268d5c1f
...@@ -2538,7 +2538,7 @@ void libdvbpsi_exit(ts_stream_t *stream) ...@@ -2538,7 +2538,7 @@ void libdvbpsi_exit(ts_stream_t *stream)
{ {
summary(stdout, stream); summary(stdout, stream);
if (dvbpsi_decoder_chain_delete(stream->pat.handle)) if (!dvbpsi_decoder_chain_delete(stream->pat.handle))
fprintf(stderr, "dvbinfo: failed to delete PAT decoder chain! .. possibly leaking memory!!\n"); fprintf(stderr, "dvbinfo: failed to delete PAT decoder chain! .. possibly leaking memory!!\n");
ts_pmt_t *p_pmt = stream->pmt; ts_pmt_t *p_pmt = stream->pmt;
...@@ -2575,17 +2575,17 @@ void libdvbpsi_exit(ts_stream_t *stream) ...@@ -2575,17 +2575,17 @@ void libdvbpsi_exit(ts_stream_t *stream)
free(p_atsc_prev); free(p_atsc_prev);
} }
if (dvbpsi_decoder_chain_delete(stream->cat.handle)) if (!dvbpsi_decoder_chain_delete(stream->cat.handle))
fprintf(stderr, "dvbinfo: failed to delete CAT decoder chain! .. possibly leaking memory!!\n"); fprintf(stderr, "dvbinfo: failed to delete CAT decoder chain! .. possibly leaking memory!!\n");
if (dvbpsi_decoder_chain_delete(stream->sdt.handle)) if (!dvbpsi_decoder_chain_delete(stream->sdt.handle))
fprintf(stderr, "dvbinfo: failed to delete SDT decoder chain! .. possibly leaking memory!!\n"); fprintf(stderr, "dvbinfo: failed to delete SDT decoder chain! .. possibly leaking memory!!\n");
if (dvbpsi_decoder_chain_delete(stream->eit.handle)) if (!dvbpsi_decoder_chain_delete(stream->eit.handle))
fprintf(stderr, "dvbinfo: failed to delete EIT decoder chain! .. possibly leaking memory!!\n"); fprintf(stderr, "dvbinfo: failed to delete EIT decoder chain! .. possibly leaking memory!!\n");
if (dvbpsi_decoder_chain_delete(stream->rst.handle)) if (!dvbpsi_decoder_chain_delete(stream->rst.handle))
fprintf(stderr, "dvbinfo: failed to delete RST decoder chain! .. possibly leaking memory!!\n"); fprintf(stderr, "dvbinfo: failed to delete RST decoder chain! .. possibly leaking memory!!\n");
if (dvbpsi_decoder_chain_delete(stream->tdt.handle)) if (!dvbpsi_decoder_chain_delete(stream->tdt.handle))
fprintf(stderr, "dvbinfo: failed to delete TDT decoder chain! .. possibly leaking memory!!\n"); fprintf(stderr, "dvbinfo: failed to delete TDT decoder chain! .. possibly leaking memory!!\n");
if (dvbpsi_decoder_chain_delete(stream->atsc.handle)) if (!dvbpsi_decoder_chain_delete(stream->atsc.handle))
fprintf(stderr, "dvbinfo: failed to delete ATSC decoder chain! .. possibly leaking memory!!\n"); fprintf(stderr, "dvbinfo: failed to delete ATSC decoder chain! .. possibly leaking memory!!\n");
if (stream->pat.handle) if (stream->pat.handle)
......
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