Changeset 2864

Show
Ignore:
Timestamp:
10/30/99 08:33:19 (14 years ago)
Author:
ucacoxh
Message:

- Now initialize sp->cur_ts in session_init. I believe this fixes

transmitter assert problem at line transmit.c:203. If you see any other
assert failures with the transmitter please let me know. Thanks.

-o

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • rat/trunk/session.c

    r2799 r2864  
    128128        conv                            = converter_get_details(0); 
    129129        sp->converter                   = conv->id; 
    130         sp->clock                       = new_fast_time(GLOBAL_CLOCK_FREQ);     /* this is the global clock */ 
    131         assert(!(GLOBAL_CLOCK_FREQ%cf->format.sample_rate));                    /* just in case someone adds weird freq codecs */ 
     130        sp->clock                       = new_fast_time(GLOBAL_CLOCK_FREQ); /* this is the global clock */ 
     131        sp->cur_ts   = ts_seq32_in(&sp->decode_sequencer, get_freq(sp->device_clock), 0); 
     132        assert(!(GLOBAL_CLOCK_FREQ % cf->format.sample_rate));               /* just in case someone adds weird freq codecs */ 
    132133        sp->mode                        = AUDIO_TOOL;    
    133134        sp->rtp_session_count           = 0; 
     
    170171        strcpy(sp->title, "Untitled Session"); 
    171172        strcpy(sp->asc_address[0], "127.0.0.3");        /* Yeuch! This value should never be used! */ 
     173 
     174 
    172175} 
    173176