asterisk / pjproject-archive

Asterisk fork of PJSIP NO PULL REQUESTS OR ISSUES!!!
GNU General Public License v2.0
69 stars 42 forks source link

simpleua: Check retval for audio port open #19

Closed Deryugin closed 9 years ago

Deryugin commented 9 years ago

https://github.com/asterisk/pjproject/blob/master/pjsip-apps/src/samples/simpleua.c Look at the lines 869-880:

pjmedia_snd_port_create(inv->pool, ... 
);
if (status != PJ_SUCCESS) {
    app_perror( THIS_FILE, "Unable to create sound port", status);
    ...

status is not assigned, but is being checked for errors.

upd. Well, I just realized that this repo is fork. Sorry.