Ignore:
Timestamp:
Oct 8, 2018 5:04:13 AM (6 years ago)
Author:
nanang
Message:

Fix #2156: Fixed object slicing issue in AudioDevInfo/VideoDevInfo? by replacing MediaFormatVector? with MediaFormatVideoVector? and MediaFormatAudioVector?.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/include/pjsua2/media.hpp

    r5792 r5896  
    108108}; 
    109109 
    110 /** Array of MediaFormat */ 
    111 typedef std::vector<MediaFormat> MediaFormatVector; 
     110/** Array of MediaFormatAudio */ 
     111typedef std::vector<MediaFormatAudio> MediaFormatAudioVector; 
     112 
     113/** Array of MediaFormatVideo */ 
     114typedef std::vector<MediaFormatVideo> MediaFormatVideoVector; 
    112115 
    113116/** 
     
    760763     * Array of supported extended audio formats 
    761764     */ 
    762     MediaFormatVector extFmt; 
     765    MediaFormatAudioVector extFmt; 
    763766 
    764767    /** 
     
    17451748     * to zero, it indicates that the exact format combination is being used. 
    17461749     */ 
    1747     MediaFormatVector fmt; 
     1750    MediaFormatVideoVector fmt; 
    17481751 
    17491752    /** 
Note: See TracChangeset for help on using the changeset viewer.