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/rtspprotocol.cpp

    r41 r53  
    278278 
    279279InboundConnectivity *RTSPProtocol::GetInboundConnectivity(Variant &videoTrack, 
    280                 Variant &audioTrack) { 
     280                Variant &audioTrack, string sdpStreamName) { 
    281281        CloseInboundConnectivity(); 
     282        string streamName; 
     283        if (GetCustomParameters().HasKey("streamName")) { 
     284                streamName = (string) GetCustomParameters()["streamName"]; 
     285        } else { 
     286                streamName = sdpStreamName; 
     287        } 
    282288        _pInboundConnectivity = new InboundConnectivity(this); 
    283289        if (!_pInboundConnectivity->Initialize(videoTrack, audioTrack, 
    284                         (bool)GetCustomParameters()["forceTcp"])) { 
     290                        streamName, (bool)GetCustomParameters()["forceTcp"])) { 
    285291                FATAL("Unable to initialize inbound connectivity"); 
    286292                CloseInboundConnectivity(); 
Note: See TracChangeset for help on using the changeset viewer.