TT#189201 add convenience function call_get_call_subscription

Change-Id: Ib5300d4c303e3b430209edf724bdb933ced08b15
pull/1546/head
Richard Fuchs 3 years ago
parent 2463c5e37c
commit 9e227099c6

@ -3046,6 +3046,15 @@ static void __subscribe_offer_answer_both_ways(struct call_monologue *a, struct
struct call_subscription *call_get_call_subscription(GHashTable *ht, struct call_monologue *ml) {
GList *l = g_hash_table_lookup(ht, ml);
if (!l)
return NULL;
return l->data;
}
/* called with call->master_lock held in W */
int monologue_publish(struct call_monologue *ml, GQueue *streams, struct sdp_ng_flags *flags) {
__call_monologue_init_from_flags(ml, flags);

@ -648,6 +648,7 @@ void __monologue_viabranch(struct call_monologue *ml, const str *viabranch);
struct packet_stream *__packet_stream_new(struct call *call);
void __add_subscription(struct call_monologue *ml, struct call_monologue *other, bool offer_answer,
unsigned int media_offset, bool rtcp_only, bool egress);
struct call_subscription *call_get_call_subscription(GHashTable *ht, struct call_monologue *ml);
void free_sink_handler(void *);
void __add_sink_handler(GQueue *, struct packet_stream *, const struct sink_attrs *);

Loading…
Cancel
Save