improve linphone_core_find_payload_type to use strcasecmp

This commit is contained in:
Simon Morlat 2012-06-12 13:48:34 +02:00
parent c45873a06a
commit 71a3ba3464

View file

@ -4511,7 +4511,7 @@ static PayloadType* find_payload_type_from_list(const char* type, int rate,const
const MSList *elem;
for(elem=from;elem!=NULL;elem=elem->next){
PayloadType *pt=(PayloadType*)elem->data;
if ((strcmp((char*)type, payload_type_get_mime(pt)) == 0) && (rate == -1 || rate==pt->clock_rate)) {
if ((strcasecmp((char*)type, payload_type_get_mime(pt)) == 0) && (rate == -1 || rate==pt->clock_rate)) {
return pt;
}
}