Add function for moving a transport from one channel to another
This commit is contained in:
parent
b936b4d62e
commit
9d9848659c
2 changed files with 14 additions and 0 deletions
12
transports.c
12
transports.c
|
@ -438,3 +438,15 @@ transport_set_priority(th_transport_t *t, int prio)
|
|||
t->tht_prio = prio;
|
||||
LIST_INSERT_SORTED(&ch->ch_transports, t, tht_channel_link, transportcmp);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
void
|
||||
transport_move(th_transport_t *t, th_channel_t *ch)
|
||||
{
|
||||
LIST_REMOVE(t, tht_channel_link);
|
||||
t->tht_channel = ch;
|
||||
LIST_INSERT_SORTED(&ch->ch_transports, t, tht_channel_link, transportcmp);
|
||||
}
|
||||
|
|
|
@ -38,4 +38,6 @@ th_stream_t *transport_add_stream(th_transport_t *t, int pid,
|
|||
|
||||
void transport_set_priority(th_transport_t *t, int prio);
|
||||
|
||||
void transport_move(th_transport_t *t, th_channel_t *ch);
|
||||
|
||||
#endif /* TRANSPORTS_H */
|
||||
|
|
Loading…
Add table
Reference in a new issue