Commit a66d2ebe authored by Pierre Ynard's avatar Pierre Ynard

rtp sout: fix reporting of sequence number when using SRTP

(cherry picked from commit 0b01c67e)
Signed-off-by: default avatarPierre Ynard <linkfanel@yahoo.fr>
parent 5d434e61
......@@ -954,8 +954,6 @@ static sout_stream_id_t *Add( sout_stream_t *p_stream, es_format_t *p_fmt )
vlc_rand_bytes (&id->i_sequence, sizeof (id->i_sequence));
vlc_rand_bytes (id->ssrc, sizeof (id->ssrc));
id->i_seq_sent_next = id->i_sequence;
id->psz_enc = NULL;
id->psz_fmtp = NULL;
id->i_clock_rate = 90000; /* most common case for video */
......@@ -1022,6 +1020,8 @@ static sout_stream_id_t *Add( sout_stream_t *p_stream, es_format_t *p_fmt )
}
#endif
id->i_seq_sent_next = id->i_sequence;
if( p_sys->psz_destination != NULL )
{
int type = SOCK_STREAM;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment