aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/rtsp.c
diff options
context:
space:
mode:
authorRonald S. Bultje <rsbultje@gmail.com>2008-09-30 13:23:33 +0000
committerRonald S. Bultje <rsbultje@gmail.com>2008-09-30 13:23:33 +0000
commitab63fb0360f1f5ce5cd7199786940d56c7a10632 (patch)
treebe1d9bdc2fe83f1ddd9dad4386ca7ed857242b3a /libavformat/rtsp.c
parenteee2cbff77d957e19c8e7d4407a27a5f42fef5f6 (diff)
downloadffmpeg-ab63fb0360f1f5ce5cd7199786940d56c7a10632.tar.gz
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. Originally committed as revision 15483 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/rtsp.c')
-rw-r--r--libavformat/rtsp.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavformat/rtsp.c b/libavformat/rtsp.c
index cfe4e644b5..6e4d36a6a6 100644
--- a/libavformat/rtsp.c
+++ b/libavformat/rtsp.c
@@ -1324,7 +1324,8 @@ static int rtsp_read_packet(AVFormatContext *s,
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);
}