1
0
mirror of https://github.com/Tha14/toxic.git synced 2025-07-03 06:06:45 +02:00

Don't compile A/V code if AUDIO/VIDEO are not #defined.

This commit is contained in:
iphydf
2018-07-06 15:45:35 +00:00
parent 43ca840658
commit 3cd2bc7e3c
3 changed files with 12 additions and 2 deletions

View File

@ -37,6 +37,8 @@
#include <stdlib.h>
#include <assert.h>
#ifdef VIDEO
#define default_video_bit_rate 5000
void receive_video_frame_cb( ToxAV *av, uint32_t friend_number,
@ -422,3 +424,5 @@ void stop_video_stream(ToxWindow *self)
if (this_call && this_call->vin_idx != -1)
stop_video_transmission(this_call, self->num);
}
#endif