[vlc-commits] commit: rtp sout: simplify (Pierre Ynard )

git at videolan.org git at videolan.org
Mon Nov 1 12:20:05 CET 2010


vlc | branch: master | Pierre Ynard <linkfanel at yahoo.fr> | Mon Nov  1 12:20:16 2010 +0100| [c7c2950f25ad4446ebc37541c91d39abaadaa5ea] | committer: Pierre Ynard 

rtp sout: simplify

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=c7c2950f25ad4446ebc37541c91d39abaadaa5ea
---

 modules/stream_out/rtsp.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/stream_out/rtsp.c b/modules/stream_out/rtsp.c
index 4760478..f737862 100644
--- a/modules/stream_out/rtsp.c
+++ b/modules/stream_out/rtsp.c
@@ -439,7 +439,7 @@ static int RtspHandler( rtsp_stream_t *rtsp, rtsp_stream_id_t *id,
             answer->i_status = 200;
             httpd_MsgAdd( answer, "Content-Type",  "%s", "application/sdp" );
             httpd_MsgAdd( answer, "Content-Base",  "%s", control );
-            answer->p_body = (uint8_t *)SDPGenerate( rtsp->owner, control );
+            answer->p_body = (uint8_t *)SDPGenerate( p_stream, control );
             if( answer->p_body != NULL )
                 answer->i_body = strlen( (char *)answer->p_body );
             else
@@ -661,7 +661,7 @@ static int RtspHandler( rtsp_stream_t *rtsp, rtsp_stream_id_t *id,
                               + sizeof("url=/trackID=123;seq=65535;"
                                        "rtptime=4294967295, ") ) + 1];
                 size_t infolen = 0;
-                int64_t ts = rtp_get_ts( rtsp->owner );
+                int64_t ts = rtp_get_ts( p_stream );
 
                 for( int i = 0; i < ses->trackc; i++ )
                 {



More information about the vlc-commits mailing list