1
0
mirror of https://github.com/Tha14/toxic.git synced 2024-11-23 05:33:01 +01:00

fix building without audio

This commit is contained in:
Jfreegman 2014-12-06 13:40:45 -05:00
parent 9464b369a4
commit 0a0891fa98
No known key found for this signature in database
GPG Key ID: 3627F3144076AE63

View File

@ -473,8 +473,10 @@ static void groupchat_onGroupNamelistChange(ToxWindow *self, Tox *m, int groupnu
switch (change) { switch (change) {
case TOX_CHAT_CHANGE_PEER_ADD: case TOX_CHAT_CHANGE_PEER_ADD:
#ifdef AUDIO
if (groupchats[groupnum].type == TOX_GROUPCHAT_TYPE_AV) if (groupchats[groupnum].type == TOX_GROUPCHAT_TYPE_AV)
group_audio_add_source(groupnum, peernum); group_audio_add_source(groupnum, peernum);
#endif
if (!timed_out(groupchats[groupnum].start_time, get_unix_time(), GROUP_EVENT_WAIT)) if (!timed_out(groupchats[groupnum].start_time, get_unix_time(), GROUP_EVENT_WAIT))
break; break;
@ -506,8 +508,10 @@ static void groupchat_onGroupNamelistChange(ToxWindow *self, Tox *m, int groupnu
break; break;
case TOX_CHAT_CHANGE_PEER_DEL: case TOX_CHAT_CHANGE_PEER_DEL:
#ifdef AUDIO
if (groupchats[groupnum].type == TOX_GROUPCHAT_TYPE_AV) if (groupchats[groupnum].type == TOX_GROUPCHAT_TYPE_AV)
group_audio_rm_source(groupnum, peernum); group_audio_rm_source(groupnum, peernum);
#endif
event = "has left the room"; event = "has left the room";
line_info_add(self, timefrmt, (char *) oldpeername, NULL, CONNECTION, 0, RED, event); line_info_add(self, timefrmt, (char *) oldpeername, NULL, CONNECTION, 0, RED, event);