Ticket #2156 (closed defect: fixed)

Opened 2 months ago

Last modified 2 months ago

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

comment:1 Changed 2 months ago by nanang

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

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.