Changeset 3980


Ignore:
Timestamp:
Mar 20, 2012 9:23:20 AM (12 years ago)
Author:
ming
Message:

Re #1428: Fix returning the correct error status when there is no active media.

File:
1 edited

Legend:

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

    r3911 r3980  
    12971297                media_used[j] == 0) 
    12981298            { 
     1299                pj_status_t status2; 
     1300 
    12991301                /* See if it has matching codec. */ 
    1300                 status = match_offer(pool, prefer_remote_codec_order,  
    1301                                      om, im, initial, &am); 
    1302                 if (status == PJ_SUCCESS) { 
     1302                status2 = match_offer(pool, prefer_remote_codec_order,  
     1303                                      om, im, initial, &am); 
     1304                if (status2 == PJ_SUCCESS) { 
    13031305                    /* Mark media as used. */ 
    13041306                    media_used[j] = 1; 
    13051307                    break; 
    1306                 } 
     1308                } else { 
     1309                    status = status2; 
     1310                } 
    13071311            } 
    13081312        } 
Note: See TracChangeset for help on using the changeset viewer.