Skip to content

Commit

Permalink
Added debug output to prepare_transmission
Browse files Browse the repository at this point in the history
  • Loading branch information
naxuroqa committed Jul 9, 2014
1 parent af95672 commit 16f0eb3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/core/ToxSession.vala
Original file line number Diff line number Diff line change
Expand Up @@ -895,7 +895,11 @@ namespace Venom {

public bool prepare_transmission(Contact c, ToxAV.CallType call_type, ToxAV.CodecSettings settings = ToxAV.DefaultCodecSettings) {
ToxAV.CodecSettings t_settings = settings;
return _toxav_handle.prepare_transmission(c.call_index, ref t_settings, call_type) == 0;
ToxAV.AV_Error e = _toxav_handle.prepare_transmission(c.call_index, ref t_settings, call_type);
if(e != ToxAV.AV_Error.NONE) {
stderr.printf("toxav_prepare_transmission failed: %i\n", e);
}
return e == ToxAV.AV_Error.NONE;
}

public ToxAV.CallType get_peer_transmission_type (Contact c) {
Expand Down

0 comments on commit 16f0eb3

Please sign in to comment.