]> git.sesse.net Git - vlc/commitdiff
QT 7.2 seems to handle PPS/SPS ok, so send them too.
authorIlkka Ollakka <ileoo@videolan.org>
Sat, 8 Sep 2007 09:11:56 +0000 (09:11 +0000)
committerIlkka Ollakka <ileoo@videolan.org>
Sat, 8 Sep 2007 09:11:56 +0000 (09:11 +0000)
small typo to fix port-audio/video sending.

modules/stream_out/rtp.c

index c803e1769cc1ec565b4b46ee28caed8c10b76a57..6d7aaaedb5e72e17777a6639063825ff5d50abd3 100644 (file)
@@ -867,7 +867,7 @@ static sout_stream_id_t *Add( sout_stream_t *p_stream, es_format_t *p_fmt )
     {
         int ttl = (p_sys->i_ttl > 0) ? p_sys->i_ttl : -1;
         int fd = net_ConnectDgram( p_stream, p_sys->psz_destination,
-                                   p_sys->i_port, ttl, IPPROTO_UDP );
+                                   i_port, ttl, IPPROTO_UDP );
 
         if( fd == -1 )
         {
@@ -1770,12 +1770,6 @@ rtp_packetize_h264_nal( sout_stream_t *p_stream, sout_stream_id_t *id,
 
     i_nal_hdr = p_data[3];
     i_nal_type = i_nal_hdr&0x1f;
-    if( i_nal_type == 7 || i_nal_type == 8 )
-    {
-        /* XXX Why do you want to remove them ? It will break streaming with 
-         * SPS/PPS change (broadcast) ? */
-        return VLC_SUCCESS;
-    }
 
     /* Skip start code */
     p_data += 3;