diff --git a/test/call.c b/test/call.c index e716f67a14..28b56b9b06 100644 --- a/test/call.c +++ b/test/call.c @@ -1314,7 +1314,6 @@ int test_call_change_videodir(void) err = re_main_timeout(5000); TEST_ERR(err); TEST_ERR(fix.err); - cancel_rule_pop(); ASSERT_TRUE(!call_has_video(ua_call(f->a.ua))); ASSERT_TRUE(call_has_video(ua_call(f->b.ua))); @@ -1326,6 +1325,7 @@ int test_call_change_videodir(void) vm = stream_sdpmedia(video_strm(call_video(ua_call(f->b.ua)))); ASSERT_EQ(SDP_SENDRECV, sdp_media_ldir(vm)); ASSERT_EQ(SDP_INACTIVE, sdp_media_rdir(vm)); + cancel_rule_pop(); /* Set video sendrecv */ err = call_set_video_dir(ua_call(f->a.ua), SDP_SENDRECV);