Opened 5 years ago

Closed 5 years ago

#2156 closed defect (fixed)

Object slicing in MediaFormatVector

Reported by: nanang Owned by: bennylp
Priority: normal Milestone: release-2.9
Component: pjsua2 Version: trunk
Keywords: Cc:
Backport to 1.x milestone: Backported: no


Reported that there are object slicing issues in AudioDevInfo/VideoDevInfo when storing video/audio format detail info (i.e: MediaFormatVideo/MediaFormatAudio) into MediaFormatVector, this is due to the definition of MediaFormatVector that is a vector of MediaFormat (no pointer):

typedef std::vector<MediaFormat> MediaFormatVector;

This ticket will replace MediaFormatVector with MediaFormatVideoVector and MediaFormatAudioVector.

Thanks Ryan Wallach for the report and the suggestion.

Change History (1)

comment:1 Changed 5 years ago by nanang

  • Resolution set to fixed
  • Status changed from new to closed

In 5896:

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

Note: See TracTickets for help on using tickets.