[vlc-commits] rtsp: fix crash with VoD when all tracks are not set up
Pierre Ynard
git at videolan.org
Mon Mar 14 01:45:45 CET 2011
vlc | branch: master | Pierre Ynard <linkfanel at yahoo.fr> | Mon Mar 14 01:45:10 2011 +0100| [a6bddac2997995618c5b0221866684921b4c2692] | committer: Pierre Ynard
rtsp: fix crash with VoD when all tracks are not set up
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=a6bddac2997995618c5b0221866684921b4c2692
---
modules/stream_out/rtsp.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/modules/stream_out/rtsp.c b/modules/stream_out/rtsp.c
index 8ec90f7..6a8534a 100644
--- a/modules/stream_out/rtsp.c
+++ b/modules/stream_out/rtsp.c
@@ -466,6 +466,7 @@ int RtspTrackAttach( rtsp_stream_t *rtsp, const char *name,
vlc_rand_bytes (&track.ssrc, sizeof (track.ssrc));
INSERT_ELEM(session->trackv, session->trackc, session->trackc, track);
+ tr = session->trackv + session->trackc - 1;
}
*ssrc = ntohl(tr->ssrc);
More information about the vlc-commits
mailing list