Changeset 802 for pjproject


Ignore:
Timestamp:
Nov 15, 2006 6:55:44 PM (18 years ago)
Author:
bennylp
Message:

Added checking for clock rate mismatch in PJMEDIA master port.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjmedia/src/pjmedia/master_port.c

    r582 r802  
    6161 
    6262 
    63     /* Both ports MUST have the equal ptime */ 
     63    /* Both ports MUST have equal clock rate */ 
     64    PJ_ASSERT_RETURN(u_port->info.clock_rate == d_port->info.clock_rate, 
     65                     PJMEDIA_ENCCLOCKRATE); 
     66 
     67    /* Both ports MUST have equal ptime */ 
    6468    PJ_ASSERT_RETURN(u_port->info.clock_rate/u_port->info.samples_per_frame== 
    6569                     d_port->info.clock_rate/d_port->info.samples_per_frame, 
Note: See TracChangeset for help on using the changeset viewer.