Lines Matching refs:pstream

45 …nr_ice_peer_ctx *pctx, nr_ice_media_stream *stream, nr_ice_media_stream *pstream, char **attrs, in…
46 static int nr_ice_ctx_parse_candidate(nr_ice_peer_ctx *pctx, nr_ice_media_stream *pstream, char *ca…
92 nr_ice_media_stream *pstream=0; in nr_ice_peer_ctx_parse_stream_attributes() local
101 if(r=nr_ice_media_stream_create(pctx->ctx,stream->label,"","",stream->component_ct,&pstream)) in nr_ice_peer_ctx_parse_stream_attributes()
106 comp2=STAILQ_FIRST(&pstream->components); in nr_ice_peer_ctx_parse_stream_attributes()
114 pstream->local_stream=stream; in nr_ice_peer_ctx_parse_stream_attributes()
115 pstream->pctx=pctx; in nr_ice_peer_ctx_parse_stream_attributes()
117 nr_ice_peer_ctx_parse_stream_attributes_int(pctx,stream,pstream,attrs,attr_ct); in nr_ice_peer_ctx_parse_stream_attributes()
125 rufrag=pstream->ufrag; in nr_ice_peer_ctx_parse_stream_attributes()
126 rpwd=pstream->pwd; in nr_ice_peer_ctx_parse_stream_attributes()
130 if(r=nr_concat_strings(&pstream->r2l_user,lufrag,":",rufrag,NULL)) in nr_ice_peer_ctx_parse_stream_attributes()
132 if(r=nr_concat_strings(&pstream->l2r_user,rufrag,":",lufrag,NULL)) in nr_ice_peer_ctx_parse_stream_attributes()
134 if(r=r_data_make(&pstream->r2l_pass, (UCHAR *)lpwd, strlen(lpwd))) in nr_ice_peer_ctx_parse_stream_attributes()
136 if(r=r_data_make(&pstream->l2r_pass, (UCHAR *)rpwd, strlen(rpwd))) in nr_ice_peer_ctx_parse_stream_attributes()
139 STAILQ_INSERT_TAIL(&pctx->peer_streams,pstream,entry); in nr_ice_peer_ctx_parse_stream_attributes()
140 pstream=0; in nr_ice_peer_ctx_parse_stream_attributes()
145 nr_ice_media_stream_destroy(&pstream); in nr_ice_peer_ctx_parse_stream_attributes()
150 …nr_ice_peer_ctx *pctx, nr_ice_media_stream *stream, nr_ice_media_stream *pstream, char **attrs, in… in nr_ice_peer_ctx_parse_stream_attributes_int() argument
157 if(r=nr_ice_peer_ctx_parse_media_stream_attribute(pctx,pstream,attrs[i])) { in nr_ice_peer_ctx_parse_stream_attributes_int()
163 if(r=nr_ice_ctx_parse_candidate(pctx,pstream,attrs[i],0,0)) { in nr_ice_peer_ctx_parse_stream_attributes_int()
176 static int nr_ice_ctx_parse_candidate(nr_ice_peer_ctx *pctx, nr_ice_media_stream *pstream, char *ca… in nr_ice_ctx_parse_candidate() argument
183 if(r=nr_ice_peer_candidate_from_attribute(pctx->ctx,candidate,pstream,&cand)) in nr_ice_ctx_parse_candidate()
198 for(comp=STAILQ_FIRST(&pstream->components);comp;comp=STAILQ_NEXT(comp,entry)){ in nr_ice_ctx_parse_candidate()
238 nr_ice_media_stream *pstream; in nr_ice_peer_ctx_find_pstream() local
242 pstream=STAILQ_FIRST(&pctx->peer_streams); in nr_ice_peer_ctx_find_pstream()
243 while(pstream) { in nr_ice_peer_ctx_find_pstream()
244 if (pstream->local_stream == stream) in nr_ice_peer_ctx_find_pstream()
247 pstream = STAILQ_NEXT(pstream, entry); in nr_ice_peer_ctx_find_pstream()
249 if (!pstream) { in nr_ice_peer_ctx_find_pstream()
254 *pstreamp = pstream; in nr_ice_peer_ctx_find_pstream()
278 nr_ice_media_stream *pstream; in nr_ice_peer_ctx_parse_trickle_candidate() local
287 r = nr_ice_peer_ctx_find_pstream(pctx, stream, &pstream); in nr_ice_peer_ctx_parse_trickle_candidate()
291 switch(pstream->ice_state) { in nr_ice_peer_ctx_parse_trickle_candidate()
299 …ckle ICE in inappropriate state %d",pctx->ctx->label,pctx->label,stream->label,pstream->ice_state); in nr_ice_peer_ctx_parse_trickle_candidate()
304 if(r=nr_ice_ctx_parse_candidate(pctx,pstream,candidate,1,mdns_addr)){ in nr_ice_peer_ctx_parse_trickle_candidate()
319 if(r=nr_ice_media_stream_pair_candidates(pctx, stream, pstream)) { in nr_ice_peer_ctx_parse_trickle_candidate()
337 if (!pstream->timer) { in nr_ice_peer_ctx_parse_trickle_candidate()
338 if(r=nr_ice_media_stream_start_checks(pctx, pstream)) { in nr_ice_peer_ctx_parse_trickle_candidate()
434 nr_ice_media_stream *pstream; in nr_ice_peer_ctx_pair_new_trickle_candidate() local
437 if ((r = nr_ice_peer_ctx_find_pstream(pctx, cand->stream, &pstream))) in nr_ice_peer_ctx_pair_new_trickle_candidate()
446 if ((r = nr_ice_media_stream_pair_new_trickle_candidate(pctx, pstream, cand))) in nr_ice_peer_ctx_pair_new_trickle_candidate()
457 nr_ice_media_stream *pstream; in nr_ice_peer_ctx_disable_component() local
460 if ((r=nr_ice_peer_ctx_find_pstream(pctx, lstream, &pstream))) in nr_ice_peer_ctx_disable_component()
464 if (pstream->ice_state != NR_ICE_MEDIA_STREAM_UNPAIRED) in nr_ice_peer_ctx_disable_component()
467 if ((r=nr_ice_media_stream_find_component(pstream, component_id, in nr_ice_peer_ctx_disable_component()
854 nr_ice_media_stream *pstream=STAILQ_FIRST(&pctx->peer_streams); in nr_ice_peer_ctx_switch_controlling_role() local
855 while(pstream) { in nr_ice_peer_ctx_switch_controlling_role()
856 nr_ice_media_stream_role_change(pstream); in nr_ice_peer_ctx_switch_controlling_role()
857 pstream = STAILQ_NEXT(pstream, entry); in nr_ice_peer_ctx_switch_controlling_role()