Home | History | Annotate | Download | only in googlepatches

Lines Matching full:stream

9 + * Uninitializes and Deallocates a stream.
12 +srtp_stream_uninit_and_dealloc(srtp_stream_t stream,
98 /* allocate ekt data associated with stream */
129 -srtp_stream_dealloc(srtp_t session, srtp_stream_ctx_t *stream) {
130 +srtp_stream_dealloc(srtp_stream_ctx_t *stream,
138 @@ -178,41 +174,29 @@ srtp_stream_dealloc(srtp_t session, srtp_stream_ctx_t *stream) {
143 - && stream->rtp_cipher == session->stream_template->rtp_cipher) {
146 + if (!stream_template || stream->rtp_cipher != stream_template->rtp_cipher) {
147 status = cipher_dealloc(stream->rtp_cipher);
154 - && stream->rtp_auth == session->stream_template->rtp_auth) {
157 + if (!stream_template || stream->rtp_auth != stream_template->rtp_auth) {
158 status = auth_dealloc(stream->rtp_auth);
165 - && stream->limit == session->stream_template->limit) {
168 + if (!stream_template || stream->limit != stream_template->limit) {
169 crypto_free(stream->limit);
180 - && stream->rtcp_cipher == session->stream_template->rtcp_cipher) {
183 + if (!stream_template || stream->rtcp_cipher != stream_template->rtcp_cipher) {
184 status = cipher_dealloc(stream->rtcp_cipher);
187 @@ -222,17 +206,14 @@ srtp_stream_dealloc(srtp_t session, srtp_stream_ctx_t *stream) {
192 - && stream->rtcp_auth == session->stream_template->rtcp_auth) {
195 + if (!stream_template || stream->rtcp_auth != stream_template->rtcp_auth) {
196 status = auth_dealloc(stream->rtcp_auth);
204 /* deallocate srtp stream context */
205 crypto_free(stream);
222 stream = session->stream_list;
223 while (stream != NULL) {
224 srtp_stream_t next = stream->next;
225 - status = srtp_stream_dealloc(session, stream);
227 + status = srtp_stream_uninit_and_dealloc(stream, session->stream_template);
231 stream = next;
235 /* deallocate stream template, if there is one */
266 srtp_stream_ctx_t *stream, *last_stream;
274 /* find stream in list; complain if not found */
275 last_stream = stream = session->stream_list;
276 while ((stream != NULL) && (ssrc != stream->ssrc)) {
278 /* remove stream from the list */
279 last_stream->next = stream->next;
281 + return srtp_stream_uninit_and_dealloc(stream, session->stream_template);
285 +srtp_stream_uninit_and_dealloc(srtp_stream_ctx_t *stream,
289 + status = srtp_stream_uninit(stream);
293 /* deallocate the stream */
294 - status = srtp_stream_dealloc(session, stream);
295 + status = srtp_stream_dealloc(stream, stream_template);