Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
mpegts: tables - flush all - fix unregisteredd deferred table flush
  • Loading branch information
perexg committed Jul 11, 2014
1 parent efdfaf1 commit 163e1bd
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/input/mpegts/mpegts_table.c
Expand Up @@ -206,6 +206,13 @@ mpegts_table_flush_all ( mpegts_mux_t *mm )
pthread_mutex_lock(&mm->mm_tables_lock);
while ((mt = LIST_FIRST(&mm->mm_defer_tables))) {
LIST_REMOVE(mt, mt_defer_link);
if (!mt->mt_defer_reg) {
/* registration not fished, but ... */
/* allow the table free in next table destroy loop */
mt->mt_defer_reg = 1;
LIST_INSERT_HEAD(&mm->mm_tables, mt, mt_link);
mm->mm_num_tables++;
}
mt->mt_defer_cmd = 0;
mpegts_table_release(mt);
}
Expand Down

0 comments on commit 163e1bd

Please sign in to comment.