Changeset 4698

Show
Ignore:
Timestamp:
03/19/10 12:42:13 (4 years ago)
Author:
douglask
Message:

Patch supplied by Andrew Ford for sending the "loc" Tcl resource via SDES_LOC
over RTCP.

Location:
vic/branches/mpeg4
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • vic/branches/mpeg4/rtp/session.cpp

    r4477 r4698  
    498498                noteslot = RTCP_SDES_NAME; 
    499499        } 
     500 
    500501        u_int seq = (++sdes_seq_) & 0x7; 
     502        // if loc is set as a tcl resource, change to use 10 different packets 
     503        // with loc on the last even one 
     504        const char* loc = ls.sdes(RTCP_SDES_LOC); 
     505        if ( loc && *loc ) 
     506                seq = sdes_seq_ % 10; 
     507 
    501508        switch (seq) { 
    502509 
     
    510517        case 6: 
    511518                p = build_sdes_item(p, RTCP_SDES_TOOL, ls); 
     519                break; 
     520        case 8: 
     521                p = build_sdes_item(p, RTCP_SDES_LOC, ls); 
    512522                break; 
    513523        default: 
  • vic/branches/mpeg4/tcl/cf-util.tcl

    r4409 r4698  
    135135        $src sdes note [resource rtpNote] 
    136136        $src sdes cname $cname 
     137        $src sdes loc [resource loc] 
    137138        set tool $V(app)-[version] 
    138139        global tcl_platform