Fix missing return values

Signed-off-by: François Andriot <francois.andriot@free.fr>
pull/1/head r14.0.0
François Andriot 10 years ago committed by Slávek Banko
parent d00aba91a4
commit dedd07e78d

@ -47,6 +47,7 @@ void *thread_function(void *data)
if (iface && (mc->mute()==FALSE)) if (iface && (mc->mute()==FALSE))
iface->SendPacket(buf, len); iface->SendPacket(buf, len);
} }
return NULL;
} }
LinphoneMediaChannel::LinphoneMediaChannel() { LinphoneMediaChannel::LinphoneMediaChannel() {
@ -118,8 +119,8 @@ void LinphoneMediaChannel::SetSend(bool send) {
mute_ = !send; mute_ = !send;
} }
float LinphoneMediaChannel::GetCurrentQuality() {} float LinphoneMediaChannel::GetCurrentQuality() { return 0; }
int LinphoneMediaChannel::GetOutputLevel() {} int LinphoneMediaChannel::GetOutputLevel() { return 0; }
LinphoneMediaEngine::LinphoneMediaEngine() {} LinphoneMediaEngine::LinphoneMediaEngine() {}
LinphoneMediaEngine::~LinphoneMediaEngine() {} LinphoneMediaEngine::~LinphoneMediaEngine() {}
@ -163,8 +164,8 @@ MediaChannel *LinphoneMediaEngine::CreateChannel() {
return new LinphoneMediaChannel(); return new LinphoneMediaChannel();
} }
int LinphoneMediaEngine::SetAudioOptions(int options) {} int LinphoneMediaEngine::SetAudioOptions(int options) { return 0; }
int LinphoneMediaEngine::SetSoundDevices(int wave_in_device, int wave_out_device) {} int LinphoneMediaEngine::SetSoundDevices(int wave_in_device, int wave_out_device) { return 0; }
float LinphoneMediaEngine::GetCurrentQuality() {} float LinphoneMediaEngine::GetCurrentQuality() { return 0; }
int LinphoneMediaEngine::GetInputLevel() {} int LinphoneMediaEngine::GetInputLevel() { return 0; }

@ -340,4 +340,5 @@ gint audio_stream_send_dtmf(AudioStream *stream, gchar dtmf)
{ {
ms_rtp_send_dtmf(MS_RTP_SEND(stream->rtpsend), dtmf); ms_rtp_send_dtmf(MS_RTP_SEND(stream->rtpsend), dtmf);
ms_oss_write_play_dtmf(MS_OSS_WRITE(stream->soundwrite),dtmf); ms_oss_write_play_dtmf(MS_OSS_WRITE(stream->soundwrite),dtmf);
return 0;
} }

@ -172,6 +172,7 @@ gint ms_read_close(MSRead *obj)
obj->fd=-1; obj->fd=-1;
obj->state=MS_READ_STATE_STOPPED; obj->state=MS_READ_STATE_STOPPED;
} }
return 0;
} }

@ -189,5 +189,6 @@ int ms_sync_uninit(MSSync *sync)
g_mutex_free(sync->lock); g_mutex_free(sync->lock);
g_cond_free(sync->thread_cond); g_cond_free(sync->thread_cond);
g_cond_free(sync->stop_cond); g_cond_free(sync->stop_cond);
return 0;
} }

Loading…
Cancel
Save