forked from mirrors/linphone-iphone
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:
parent
b1ffd1f219
commit
b08b2fbd1c
1 changed files with 3 additions and 1 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue