Commit a6bddac2 authored by Pierre Ynard's avatar Pierre Ynard

rtsp: fix crash with VoD when all tracks are not set up

parent 79621a91
...@@ -466,6 +466,7 @@ int RtspTrackAttach( rtsp_stream_t *rtsp, const char *name, ...@@ -466,6 +466,7 @@ int RtspTrackAttach( rtsp_stream_t *rtsp, const char *name,
vlc_rand_bytes (&track.ssrc, sizeof (track.ssrc)); vlc_rand_bytes (&track.ssrc, sizeof (track.ssrc));
INSERT_ELEM(session->trackv, session->trackc, session->trackc, track); INSERT_ELEM(session->trackv, session->trackc, session->trackc, track);
tr = session->trackv + session->trackc - 1;
} }
*ssrc = ntohl(tr->ssrc); *ssrc = ntohl(tr->ssrc);
......
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