Changeset 3868


Ignore:
Timestamp:
Oct 27, 2011 10:22:39 AM (8 years ago)
Author:
ming
Message:

Re #1252 (misc): Add codec initialization before opening it in pjmedia stream

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/branches/1.x/pjmedia/src/pjmedia/stream.c

    r3831 r3868  
    20552055        stream->codec_param.setting.frm_per_pkt = 1; 
    20562056 
     2057    /* Init the codec. */ 
     2058    status = stream->codec->op->init(stream->codec, pool); 
     2059    if (status != PJ_SUCCESS) 
     2060        goto err_cleanup; 
     2061 
    20572062    /* Open the codec. */ 
    20582063    status = stream->codec->op->open(stream->codec, &stream->codec_param); 
Note: See TracChangeset for help on using the changeset viewer.