]> git.sesse.net Git - vlc/commitdiff
* modules/demux/livedotcom.cpp: - ts2 -> ts
authorDerk-Jan Hartman <hartman@videolan.org>
Tue, 22 Jun 2004 00:03:08 +0000 (00:03 +0000)
committerDerk-Jan Hartman <hartman@videolan.org>
Tue, 22 Jun 2004 00:03:08 +0000 (00:03 +0000)
  - take into account !rtpSource (for UDP support)

modules/demux/livedotcom.cpp

index bf60c1b669a4cbe0f8d82465fca8818299d1b4f0..25584aef518a1668a7d47a687a3dfa4eea0fff9d 100644 (file)
@@ -158,8 +158,6 @@ static int  AccessOpen( vlc_object_t *p_this )
         p_sys->i_sdp = strlen( p_sys->p_sdp );
         p_sys->i_pos = 0;
 
-        //fprintf( stderr, "sdp=%s\n", p_sys->p_sdp );
-
         delete env;
         delete scheduler;
 
@@ -456,12 +454,15 @@ static int  DemuxOpen ( vlc_object_t *p_this )
         }
         else
         {
-            int fd = sub->rtpSource()->RTPgs()->socketNum();
+            if( sub->rtpSource() )
+            {
+                int fd = sub->rtpSource()->RTPgs()->socketNum();
+                /* Increase the buffer size */
+                increaseReceiveBufferTo( *p_sys->env, fd, i_buffer );
+            }
 
             msg_Dbg( p_demux, "RTP subsession '%s/%s'", sub->mediumName(), sub->codecName() );
 
-            /* Increase the buffer size */
-            increaseReceiveBufferTo( *p_sys->env, fd, i_buffer );
             /* Issue the SETUP */
             if( p_sys->rtsp )
             {
@@ -612,12 +613,12 @@ static int  DemuxOpen ( vlc_object_t *p_this )
             else if( !strcmp( sub->codecName(), "MP2T" ) )
             {
                 tk->b_muxed = VLC_TRUE;
-                tk->p_out_muxed = stream_DemuxNew( p_demux, "ts2", p_demux->out );
+                tk->p_out_muxed = stream_DemuxNew( p_demux, "ts", p_demux->out );
             }
             else if( !strcmp( sub->codecName(), "MP2P" ) || !strcmp( sub->codecName(), "MP1S" ) )
             {
                 tk->b_muxed = VLC_TRUE;
-                tk->p_out_muxed = stream_DemuxNew( p_demux, "ps2", p_demux->out );
+                tk->p_out_muxed = stream_DemuxNew( p_demux, "ps", p_demux->out );
             }
         }