changeset 3784:d370d80ad1df libavformat

Use RTPDynamicProtocol parse_sdp_a_line() handlers in case of unknown SDP lines. This allows "private" SDP tags to be forwarded to the specific handler, allowing protocol-specific handling of SDP data. See mailinglist discussion in the "Realmedia patch" thread.
author rbultje
date Wed, 27 Aug 2008 00:33:22 +0000
parents db75e26da599
children fd49d42b918f
files rtsp.c
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/rtsp.c	Tue Aug 26 20:38:04 2008 +0000
+++ b/rtsp.c	Wed Aug 27 00:33:22 2008 +0000
@@ -527,6 +527,12 @@
             rtsp_parse_range_npt(p, &start, &end);
             s->start_time= start;
             s->duration= (end==AV_NOPTS_VALUE)?AV_NOPTS_VALUE:end-start; // AV_NOPTS_VALUE means live broadcast (and can't seek)
+        } else if (s->nb_streams > 0) {
+            rtsp_st = s->streams[s->nb_streams - 1]->priv_data;
+            if (rtsp_st->dynamic_handler &&
+                rtsp_st->dynamic_handler->parse_sdp_a_line)
+                rtsp_st->dynamic_handler->parse_sdp_a_line(s->streams[s->nb_streams - 1],
+                    rtsp_st->dynamic_protocol_context, buf);
         }
         break;
     }