Commit b08b2fbd authored by smorlat's avatar smorlat
Browse files

fix bug when re-initializing the decoder when a new sps arrives.



git-svn-id: svn+ssh://svn.savannah.nongnu.org/linphone/trunk@93 3f6dc0c8-ddfe-455d-9043-3cd528dc4637
parent b1ffd1f2
......@@ -361,7 +361,8 @@ static void update_sps(DecData *d, mblk_t *sps){
static void update_pps(DecData *d, mblk_t *pps){
if (d->pps)
freemsg(d->pps);
d->pps=dupb(pps);
if (pps) d->pps=dupb(pps);
else d->pps=NULL;
}
static bool_t check_sps_pps_change(DecData *d, mblk_t *sps, mblk_t *pps){
......@@ -372,6 +373,7 @@ static bool_t check_sps_pps_change(DecData *d, mblk_t *sps, mblk_t *pps){
if (ret1) {
update_sps(d,sps);
ms_message("SPS changed !");
update_pps(d,NULL);
}
}
}else if (sps) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment