Skip to content

Commit e19efdc

Browse files
committed
Use current directions in stream update test
1 parent e51cd58 commit e19efdc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/srtp_driver.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2831,16 +2831,16 @@ srtp_err_status_t srtp_test_update()
28312831
policy.window_size = 128;
28322832
policy.allow_repeat_tx = 0;
28332833
policy.next = NULL;
2834-
policy.ssrc.type = ssrc_any_outbound;
28352834
policy.key = test_key;
28362835

28372836
/* create a send and recive ctx with defualt profile and test_key */
2838-
status = srtp_create(&srtp_recv, &policy);
2837+
policy.ssrc.type = ssrc_any_outbound;
2838+
status = srtp_create(&srtp_snd, &policy);
28392839
if (status)
28402840
return status;
28412841

28422842
policy.ssrc.type = ssrc_any_inbound;
2843-
status = srtp_create(&srtp_snd, &policy);
2843+
status = srtp_create(&srtp_recv, &policy);
28442844
if (status)
28452845
return status;
28462846

0 commit comments

Comments
 (0)