Commit 94e30e4a authored by aymeric's avatar aymeric
Browse files

optimize loop.

git-svn-id: svn+ssh://svn.savannah.nongnu.org/linphone/trunk@478 3f6dc0c8-ddfe-455d-9043-3cd528dc4637
parent 14146fde
......@@ -728,13 +728,14 @@ static void winsndds_write_preprocess(MSFilter *f){
/* search for another winsndds filter */
for(it=filters;it!=NULL;it=it->next)
{
MSFilter *f_tmp = (MSFilter*)it->data;
if (f_tmp->desc->id == MS_WINSNDDS_READ_ID)
f_capture_filter = (MSFilter*)it->data;
if (f_capture_filter->desc->id == MS_WINSNDDS_READ_ID)
{
/* found */
f_capture_filter = f_tmp;
d_capture_filter=(WinSndDs*)f_capture_filter->data;
break;
}
f_capture_filter=NULL;
}
ms_list_free(filters);
}
......
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