Ignore:
Timestamp:
08/04/10 20:56:40 (22 months ago)
Author:
shiretu
Message:

-- added proper stream naming for rtsp streams

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/thelib/src/protocols/rtp/connectivity/inboundconnectivity.cpp

    r49 r53  
    5454 
    5555bool InboundConnectivity::Initialize(Variant &videoTrack, Variant &audioTrack, 
    56                 bool forceTcp) { 
     56                string streamName, bool forceTcp) { 
    5757        _forceTcp = forceTcp; 
    5858 
     
    8787 
    8888        //5. Create the in stream 
     89        if (streamName == "") 
     90                streamName = format("rtsp_%d", _pRTSP->GetId()); 
    8991        _pInStream = new InNetRTPStream(_pRTSP, pApplication->GetStreamsManager(), 
    90                         format("rtsp_%d", _pRTSP->GetId()), 
     92                        streamName, 
    9193                        unb64((string) SDP_VIDEO_CODEC_H264_SPS(videoTrack)), 
    9294                        unb64((string) SDP_VIDEO_CODEC_H264_PPS(videoTrack))); 
     
    214216        //FINEST("%s:%d length: %d", inet_ntoa(address.sin_addr), ntohs(address.sin_port), length); 
    215217        return sendto(pRTCP->GetIOHandler()->GetOutboundFd(), 
    216                         (char *)pBuffer, length, 0, (sockaddr *) & address, sizeof (address)) == (int32_t) length; 
     218                        (char *) pBuffer, length, 0, (sockaddr *) & address, sizeof (address)) == (int32_t) length; 
    217219} 
    218220 
Note: See TracChangeset for help on using the changeset viewer.