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
This commit is contained in:
smorlat 2008-10-15 19:28:49 +00:00
parent b1ffd1f219
commit b08b2fbd1c

View file

@ -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) {