mirror of
https://github.com/Tha14/toxic.git
synced 2024-11-16 04:13:02 +01:00
fix possible crash
This commit is contained in:
parent
47692edee4
commit
9464b369a4
@ -334,6 +334,8 @@ void callback_peer_timeout ( void* av, int32_t call_index, void* arg )
|
|||||||
void write_device_callback_group(Tox *m, int groupnum, int peernum, const int16_t *pcm, unsigned int samples,
|
void write_device_callback_group(Tox *m, int groupnum, int peernum, const int16_t *pcm, unsigned int samples,
|
||||||
uint8_t channels, unsigned int sample_rate, void *arg)
|
uint8_t channels, unsigned int sample_rate, void *arg)
|
||||||
{
|
{
|
||||||
|
return; /* TODO: fix this stuff */
|
||||||
|
|
||||||
ToxWindow *windows = arg;
|
ToxWindow *windows = arg;
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
|
@ -813,10 +813,8 @@ static int group_audio_write(int peernum, int groupnum, const int16_t *pcm, unsi
|
|||||||
}
|
}
|
||||||
|
|
||||||
static void groupchat_onWriteDevice(ToxWindow *self, Tox *m, int groupnum, int peernum, const int16_t *pcm,
|
static void groupchat_onWriteDevice(ToxWindow *self, Tox *m, int groupnum, int peernum, const int16_t *pcm,
|
||||||
unsigned int samples, uint8_t channels, unsigned int sample_rate)
|
unsigned int samples, uint8_t channels, unsigned int sample_rate)
|
||||||
{
|
{
|
||||||
return; /* TODO: fix this stuff */
|
|
||||||
|
|
||||||
if (groupnum != self->num)
|
if (groupnum != self->num)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user