ret = url_readbuf(rt->rtsp_hd, buf, len);
if (ret != len)
return -1;
+ if (rt->transport == RTSP_TRANSPORT_RDT &&
+ ff_rdt_parse_header(buf, len, &id, NULL, NULL, NULL) < 0)
+ return -1;
/* find the matching stream */
for(i = 0; i < rt->nb_rtsp_streams; i++) {
if (i != 0) av_strlcat(cmd, ",", sizeof(cmd));
ff_rdt_subscribe_rule(cmd, sizeof(cmd), i, 0);
if (rt->transport == RTSP_TRANSPORT_RDT)
- ff_rdt_subscribe_rule2(
- rt->rtsp_streams[i]->rtp_ctx,
- cmd, sizeof(cmd), i, 0);
+ ff_rdt_subscribe_rule2(
+ rt->rtsp_streams[i]->rtp_ctx,
+ cmd, sizeof(cmd), i, 0);
}
av_strlcat(cmd, "\r\n", sizeof(cmd));
rtsp_send_cmd(s, cmd, reply, NULL);