Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
mpegts: table dispatch - replace assert with debug log
- Loading branch information
Showing
1 changed file
with
9 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9c783efThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is wrong, I've seen this myself, and never got to the bottom of it, but it implies something is VERY wrong if you ask me. Simply warning about it feels like stacking up trouble!
Though maybe the real issue has been addressed in other commits, but I would have left the assert()
9c783efThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added it back, but the code is a bit different, because unsubscribed pids are not queued to vec[] and also the numbers are printed to log before assert.. It's really weird issue, because I added mutex protection to all mm_num_tables/mm_tables updates and the problem seems not to be solved..
Here is the crash:
http://pastebin.com/ccuYb3B5
It looks that the difference (num 27, list 21) is same as the count of unsubscribed PIDs:
2014-07-13 02:05:22.740 [ DEBUG]:mpegts: 10729V in 19E - close PID 040A (1034) [1/0x146a270]
2014-07-13 02:05:22.740 [ DEBUG]:mpegts: 10729V in 19E - close PID 00A3 (163) [1/0x146a270]
2014-07-13 02:05:22.740 [ DEBUG]:mpegts: 10729V in 19E - close PID 0062 (98) [1/0x146a270]
2014-07-13 02:05:22.740 [ DEBUG]:mpegts: 10729V in 19E - close PID 0063 (99) [1/0x146a270]
2014-07-13 02:05:22.740 [ DEBUG]:mpegts: 10729V in 19E - close PID 0064 (100) [1/0x146a270]
2014-07-13 02:05:22.740 [ DEBUG]:mpegts: 10729V in 19E - close PID 0065 (101) [1/0x146a270]
But these PIDs are not TABLES!!!