diff rtsp.c @ 3977:1f1c4535f421 libavformat

Remove access into RTPDemuxContext in rtsp.c, which allows making it opaque (and thus preparing for the introduction of RDTDemuxContext) in a next patch. See discussion in "RDT/Realmedia patches #2" thread on ML.
author rbultje
date Sat, 04 Oct 2008 04:16:44 +0000
parents 44561554cb7e
children 0033b09d74b9
line wrap: on
line diff
--- a/rtsp.c	Sat Oct 04 04:15:06 2008 +0000
+++ b/rtsp.c	Sat Oct 04 04:16:44 2008 +0000
@@ -900,8 +900,9 @@
          return AVERROR(ENOMEM);
     } else {
         if(rtsp_st->dynamic_handler) {
-            rtsp_st->rtp_ctx->dynamic_protocol_context= rtsp_st->dynamic_protocol_context;
-            rtsp_st->rtp_ctx->parse_packet= rtsp_st->dynamic_handler->parse_packet;
+            rtp_parse_set_dynamic_protocol(rtsp_st->rtp_ctx,
+                                           rtsp_st->dynamic_protocol_context,
+                                           rtsp_st->dynamic_handler);
         }
     }