Mercurial > libavformat.hg
diff rtsp.c @ 3959:ed6f6aa977ec libavformat
Remove access to rdt_data struct in functions called outside of the
DynamicProtocol* context. Doing so could lead to problems if we're accessing
Real servers serving non-RDT data (or the other way around). Temporarily,
this patch adds a _subscribe2() function which will soon be removed in one
of the subsequent commits. OK'ed by Luca in "Realmedia patch" thread on ML.
author | rbultje |
---|---|
date | Tue, 30 Sep 2008 13:23:33 +0000 |
parents | ab2d2bc3a6e7 |
children | 13e9b0d3a314 |
line wrap: on
line diff
--- a/rtsp.c Tue Sep 30 13:20:23 2008 +0000 +++ b/rtsp.c Tue Sep 30 13:23:33 2008 +0000 @@ -1324,7 +1324,8 @@ s->filename); for (i = 0; i < rt->nb_rtsp_streams; i++) { if (i != 0) av_strlcat(cmd, ",", sizeof(cmd)); - ff_rdt_subscribe_rule( + ff_rdt_subscribe_rule(cmd, sizeof(cmd), i, 0); + ff_rdt_subscribe_rule2( rt->rtsp_streams[i]->rtp_ctx, cmd, sizeof(cmd), i, 0); }