fix audio-only build

This commit is contained in:
Simon Morlat 2010-09-27 12:11:09 +02:00
parent 4cb9ff493e
commit 823cc830a7
2 changed files with 6 additions and 3 deletions

View file

@ -458,6 +458,7 @@ int linphone_call_get_duration(const LinphoneCall *call){
* Indicate whether camera input should be sent to remote end.
**/
void linphone_call_enable_camera (LinphoneCall *call, bool_t enable){
#ifdef VIDEO_ENABLED
if (call->videostream!=NULL && call->videostream->ticker!=NULL){
LinphoneCore *lc=call->core;
MSWebCam *nowebcam=get_nowebcam_device();
@ -467,6 +468,7 @@ void linphone_call_enable_camera (LinphoneCall *call, bool_t enable){
}
}
call->camera_active=enable;
#endif
}
/**
@ -710,10 +712,11 @@ static void setup_ring_player(LinphoneCore *lc, LinphoneCall *call){
int pause_time=3000;
if (lc->play_file!=NULL){
audio_stream_play(call->audiostream,lc->play_file);
pause_time=0;
}else{
audio_stream_play(call->audiostream,ringfile);
ms_filter_call_method(call->audiostream->soundread,MS_FILE_PLAYER_LOOP,&pause_time);
}
ms_filter_call_method(call->audiostream->soundread,MS_FILE_PLAYER_LOOP,&pause_time);
}
static void _linphone_call_start_media_streams(LinphoneCall *call, bool_t send_early_media){
@ -777,7 +780,7 @@ static void _linphone_call_start_media_streams(LinphoneCall *call, bool_t send_e
recfile,
playcard,
captcard,
linphone_core_echo_cancellation_enabled(lc));
send_early_media ? FALSE : linphone_core_echo_cancellation_enabled(lc));
post_configure_audio_streams(call);
if (send_early_media) setup_ring_player(lc,call);
audio_stream_set_rtcp_information(call->audiostream, cname, tool);

@ -1 +1 @@
Subproject commit 0d788c476c01c0894959fa2a85b43bbcac5dcb3a
Subproject commit bc372212dae65b2b2155511ac5d73f6a9ca3638f