Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
mpegts: add assert to mpegts_table_release() to check refcount
  • Loading branch information
perexg committed Jul 13, 2014
1 parent 8b22c3f commit 05d6da3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/input/mpegts.h
Expand Up @@ -766,6 +766,7 @@ void mpegts_table_release_
static inline void mpegts_table_release
(mpegts_table_t *mt)
{
assert(mt->mt_refcount > 0);
if(--mt->mt_refcount == 0) mpegts_table_release_(mt);
}
mpegts_table_t *mpegts_table_add
Expand Down

0 comments on commit 05d6da3

Please sign in to comment.