summaryrefslogtreecommitdiff
path: root/toxav
diff options
context:
space:
mode:
authorirungentoo <irungentoo@gmail.com>2014-07-23 13:32:00 -0400
committerirungentoo <irungentoo@gmail.com>2014-07-23 13:32:00 -0400
commitf6d829d8f08b83878437da8170ef340dfa781d89 (patch)
treed60c37c9578c255098711ae26558502fb91100e5 /toxav
parentcc53e9254f1299c77d3915b72ee09bd964c65dfd (diff)
parentf6bca8e9288ccc2e3a16841dadb61ddc89863437 (diff)
Merge branch 'split-video' of https://github.com/notsecure/toxcore into notsecure-split-video
Diffstat (limited to 'toxav')
-rw-r--r--toxav/msi.c4
-rw-r--r--toxav/toxav.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/toxav/msi.c b/toxav/msi.c
index 10eac60c..73429a81 100644
--- a/toxav/msi.c
+++ b/toxav/msi.c
@@ -1411,7 +1411,6 @@ static void msi_handle_packet ( Messenger *messenger, int source, const uint8_t
1411 LOGGER_WARNING("Invalid message: no resp nor requ headers"); 1411 LOGGER_WARNING("Invalid message: no resp nor requ headers");
1412 } 1412 }
1413 1413
1414free_end:
1415 free ( msg ); 1414 free ( msg );
1416} 1415}
1417 1416
@@ -1658,7 +1657,8 @@ int msi_answer ( MSISession *session, int32_t call_index, MSICallType call_type
1658 session->calls[call_index]->type_local = call_type; 1657 session->calls[call_index]->type_local = call_type;
1659 1658
1660 msi_msg_set_calltype(msg_starting, call_type); 1659 msi_msg_set_calltype(msg_starting, call_type);
1661 send_message ( session, session->calls[call_index], msg_starting, 0 ); 1660
1661 send_message ( session, session->calls[call_index], msg_starting, session->calls[call_index]->peers[0] );
1662 free ( msg_starting ); 1662 free ( msg_starting );
1663 1663
1664 session->calls[call_index]->state = call_active; 1664 session->calls[call_index]->state = call_active;
diff --git a/toxav/toxav.c b/toxav/toxav.c
index ebe32fe4..dfb5dce3 100644
--- a/toxav/toxav.c
+++ b/toxav/toxav.c
@@ -272,7 +272,7 @@ int toxav_reject ( ToxAv *av, int32_t call_index, const char *reason )
272 return ErrorInvalidState; 272 return ErrorInvalidState;
273 } 273 }
274 274
275 return msi_reject(av->msi_session, call_index, (const uint8_t *) reason); 275 return msi_reject(av->msi_session, call_index, reason);
276} 276}
277 277
278/** 278/**