Commit 4bc82605 authored by Benjamin REIS's avatar Benjamin REIS

cast away

parent a568f332
......@@ -5518,11 +5518,11 @@ static MSFilter *get_audio_resource(LinphoneCore *lc, LinphoneAudioResourceType
ringstream=lc->ringstream=ring_start(lc->factory, NULL,0,ringcard);
ms_filter_call_method(lc->ringstream->gendtmf,MS_DTMF_GEN_SET_DEFAULT_AMPLITUDE,&amp);
lc->dmfs_playing_start_time = ms_get_cur_time_ms()/1000;
lc->dmfs_playing_start_time = (time_t)ms_get_cur_time_ms()/1000;
}else{
ringstream=lc->ringstream;
if (lc->dmfs_playing_start_time!=0)
lc->dmfs_playing_start_time = ms_get_cur_time_ms()/1000;
lc->dmfs_playing_start_time = (time_t)ms_get_cur_time_ms()/1000;
}
if (rtype==LinphoneToneGenerator) return ringstream->gendtmf;
if (rtype==LinphoneLocalPlayer) return ringstream->source;
......
......@@ -77,7 +77,7 @@ int linphone_ringtoneplayer_ios_start_with_cb(LinphoneRingtonePlayer* rp, const
}
bool_t linphone_ringtoneplayer_ios_is_started(LinphoneRingtonePlayer* rp) {
return [rp->player isPlaying];
return (bool_t)[rp->player isPlaying];
}
int linphone_ringtoneplayer_ios_stop(LinphoneRingtonePlayer* rp) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment