diff --git a/linphone/mediastreamer2/src/msticker.c b/linphone/mediastreamer2/src/msticker.c
index 3c4ced2cd786c1a1b2e374943a42932050845f13..6a21b7e7e39b15599ee4618e3c9db76080047c06 100644
--- a/linphone/mediastreamer2/src/msticker.c
+++ b/linphone/mediastreamer2/src/msticker.c
@@ -296,7 +296,7 @@ static int set_high_prio(void){
 	int policy=SCHED_OTHER;
 #endif
 	param.sched_priority=sched_get_priority_max(policy);
-	if(result=pthread_setschedparam(pthread_self(),policy, &param)) {
+	if((result=pthread_setschedparam(pthread_self(),policy, &param))) {
 		ms_warning("Set sched param failed with error code(%i)\n",result);
 	} else {
 		ms_message("MS ticker priority set to max");