From 131c00b9ee22f0d171f8db0de13b096f3451c920 Mon Sep 17 00:00:00 2001 From: Ghislain MARY Date: Tue, 13 May 2014 16:56:39 +0200 Subject: [PATCH] Limit the sending of VFU request if a lot of video decoding errors are reported. --- coreapi/linphonecall.c | 5 ++++- mediastreamer2 | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/coreapi/linphonecall.c b/coreapi/linphonecall.c index bb0e8c619..c80810ba4 100644 --- a/coreapi/linphonecall.c +++ b/coreapi/linphonecall.c @@ -1404,7 +1404,10 @@ static void video_stream_event_cb(void *user_pointer, const MSFilter *f, const u switch (event_id) { case MS_VIDEO_DECODER_DECODING_ERRORS: ms_warning("Case is MS_VIDEO_DECODER_DECODING_ERRORS"); - linphone_call_send_vfu_request(call); + if (call->videostream && (video_stream_is_decoding_error_to_be_reported(call->videostream, 5000) == TRUE)) { + video_stream_decoding_error_reported(call->videostream); + linphone_call_send_vfu_request(call); + } break; case MS_VIDEO_DECODER_FIRST_IMAGE_DECODED: ms_message("First video frame decoded successfully"); diff --git a/mediastreamer2 b/mediastreamer2 index 2f942b812..a090ff068 160000 --- a/mediastreamer2 +++ b/mediastreamer2 @@ -1 +1 @@ -Subproject commit 2f942b81247ec49050200e8f631ee87d868edfba +Subproject commit a090ff06894bcb1487b53c39714593aad9d3f77d