Changeset 4788 for pjproject


Ignore:
Timestamp:
Mar 11, 2014 3:07:46 AM (11 years ago)
Author:
nanang
Message:

Re #1742 (misc): Added NULL check before cloning codec param in pjmedia stream (thanks Wolfgang Kampichler for the fix).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjmedia/src/pjmedia/stream.c

    r4739 r4788  
    20052005    stream->own_pool = own_pool; 
    20062006    pj_memcpy(&stream->si, info, sizeof(*info)); 
    2007     stream->si.param = pjmedia_codec_param_clone(pool, info->param); 
    20082007    pj_strdup(pool, &stream->si.fmt.encoding_name, &info->fmt.encoding_name); 
     2008    if (info->param) 
     2009        stream->si.param = pjmedia_codec_param_clone(pool, info->param); 
    20092010 
    20102011    /* Init stream/port name */ 
Note: See TracChangeset for help on using the changeset viewer.