Ignore:
Timestamp:
Dec 20, 2011 9:52:19 AM (12 years ago)
Author:
nanang
Message:

Fix #1425:

  • Updating port info of the switchboard master port (after reopening audio device) with the audio device param should care about PJMEDIA_AUD_DEV_CAP_EXT_FORMAT flag, i.e: only copy from audio device extended format info when the flag is set.
  • Fixed switchboard to update the master port info shortcut in connecting ports, as master port info may get updated to match to the connecting ports.
File:
1 edited

Legend:

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

    r3730 r3915  
    591591    } 
    592592 
     593    /* Update master port info shortcut, note that application may update 
     594     * the master port info when the audio device needs to be reopened with 
     595     * a new format to match to ports connection format. 
     596     */ 
     597    conf->ports[0]->samples_per_frame = PJMEDIA_PIA_SPF(conf->ports[0]->info); 
     598 
    593599    if (i == src_port->listener_cnt) { 
    594600        src_port->listener_slots[src_port->listener_cnt] = sink_slot; 
Note: See TracChangeset for help on using the changeset viewer.