Allow multiple callbacks per PID (with limitations).
This commit is contained in:
parent
01c619482f
commit
e183645081
1 changed files with 6 additions and 1 deletions
|
@ -282,8 +282,13 @@ tdt_add(th_dvb_mux_instance_t *tdmi, struct dmx_sct_filter_params *fparams,
|
|||
{
|
||||
th_dvb_table_t *t;
|
||||
|
||||
// Allow multiple entries per PID, but only one per callback/opaque instance
|
||||
// TODO: this could mean reading the same data multiple times, and not
|
||||
// sure how well this will work! I know Andreas has some thoughts on
|
||||
// this
|
||||
LIST_FOREACH(t, &tdmi->tdmi_tables, tdt_link) {
|
||||
if(pid == t->tdt_pid) {
|
||||
if(pid == t->tdt_pid &&
|
||||
tdt->tdt_callback == callback && tdt->tdt_opaque == opaque) {
|
||||
free(tdt);
|
||||
free(fparams);
|
||||
return;
|
||||
|
|
Loading…
Add table
Reference in a new issue