Skip to content

Commit af6380b

Browse files
committed
Modification based on comments
1 parent cf8fb5c commit af6380b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

pjsip/src/pjsua-lib/pjsua_vid.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3338,12 +3338,14 @@ PJ_DEF(pj_status_t) pjsua_avi_player_get_port(pjsua_player_id id,
33383338
PJSUA_INVALID_ID);
33393339

33403340
*p_port = pjsua_var.avi_player[id].port[AUD_IDX(id, strm_idx)];
3341+
break;
33413342
case PJMEDIA_TYPE_VIDEO:
33423343
PJ_ASSERT_RETURN(strm_idx >= 0 &&
33433344
strm_idx < pjsua_var.avi_player[id].vid_cnt,
33443345
PJSUA_INVALID_ID);
33453346

33463347
*p_port = pjsua_var.avi_player[id].port[strm_idx];
3348+
break;
33473349
default:
33483350
status = PJ_ENOTFOUND;
33493351
}
@@ -3385,6 +3387,9 @@ PJ_DECL(pj_status_t) pjsua_avi_player_destroy(pjsua_avi_player_id id)
33853387
if (status != PJ_SUCCESS) {
33863388
PJ_PERROR(4, (THIS_FILE, status,
33873389
"Fail destroying avi file player %d", id));
3390+
3391+
PJSUA_UNLOCK();
3392+
pj_log_pop_indent();
33883393
return status;
33893394
}
33903395

0 commit comments

Comments
 (0)