Limit the sending of VFU request if a lot of video decoding errors are reported.

This commit is contained in:
Ghislain MARY 2014-05-13 16:56:39 +02:00
parent b8c3eed489
commit 131c00b9ee
2 changed files with 5 additions and 2 deletions

View file

@ -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");

@ -1 +1 @@
Subproject commit 2f942b81247ec49050200e8f631ee87d868edfba
Subproject commit a090ff06894bcb1487b53c39714593aad9d3f77d