wiki:ReleaseNotes-2.0

Version 1 (modified by bennylp, 10 years ago) (diff)

--

PJSIP Version 2.0 Release Notes

Table of Contents

  1. New Features
    1. Video
  2. Changes
    1. Header Files
    2. General Data Structure

This document explains the new features, changes, and porting guide in/for PJSIP version 2.0.


New Features

Video

..


Changes

Header Files

<pjmedia/types.h> is split into <pjmedia/format.h>, <pjmedia/frame.h>, and <pjmedia/types.h>

Symptom: You may encounter compilation warnings/errors such as:

../include/pjmedia/circbuf.h:293: warning: implicit declaration of function ‘pjmedia_copy_samples’
../include/pjmedia/circbuf.h:409: warning: implicit declaration of function ‘pjmedia_move_samples’
../src/pjmedia/delaybuf.c:349: warning: implicit declaration of function ‘pjmedia_zero_samples’

Solution: Update your #include section accordingly, adding the new headers above. Alternatively, just include <pjmedia.h> to get all the header files.

General Data Structure

format

Huge changes..

Missing samples_per_frame

Use PJMEDIA_AFD_SAMPLES_PER_FRAME(afd)

Port info

Uses format now..

put_frame() callback of pjmedia_port

Removed const qualifier from the frame argument.

Sample warnings:

../src/pjmedia/bidirectional.c: In function ‘put_frame’:
../src/pjmedia/bidirectional.c:39: warning: passing argument 2 of ‘pjmedia_port_put_frame’ discards qualifiers from pointer target type
../include/pjmedia/port.h:334: note: expected ‘struct pjmedia_frame *’ but argument is of type ‘const struct pjmedia_frame *’
../src/pjmedia/bidirectional.c:70: warning: assignment from incompatible pointer type