srtpenc: Set the first session flag to false once one is create

Otherwise it always thinks it's the first session.

https://bugzilla.gnome.org/show_bug.cgi?id=711495
This commit is contained in:
Olivier Crête 2013-11-19 20:18:48 -05:00
parent 2b75eb85c4
commit b58ca88fb9

View file

@ -379,6 +379,8 @@ check_new_stream_locked (GstSrtpEnc * filter, guint32 ssrc)
else
ret = srtp_add_stream (filter->session, &policy);
filter->first_session = FALSE;
if (HAS_CRYPTO (filter))
gst_buffer_unmap (filter->key, &map);