From: Sangchul Lee Date: Tue, 15 Mar 2022 02:42:03 +0000 (+0900) Subject: [ITC][webrtc][non-ACR] Skip when WEBRTC_ERROR_NOT_SUPPORTED error occurs X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=750ad883b67bf0520a3048b9a9a4eab146652d0b;p=test%2Ftct%2Fnative%2Fapi.git [ITC][webrtc][non-ACR] Skip when WEBRTC_ERROR_NOT_SUPPORTED error occurs Change-Id: Ifc51dd985178b320a68606c487f11c2ea55d49cf Signed-off-by: Sangchul Lee --- diff --git a/src/itc/webrtc/ITs-webrtc.c b/src/itc/webrtc/ITs-webrtc.c index 5beda659f..674fb5591 100755 --- a/src/itc/webrtc/ITs-webrtc.c +++ b/src/itc/webrtc/ITs-webrtc.c @@ -626,6 +626,10 @@ int ITc_media_webrtc_media_source_set_get_mute_p(void) for (i = 0; i < sizeof(valid_types) / sizeof(valid_types[0]); i++) { nRet = webrtc_add_media_source(g_hWebRtcHandle, valid_types[i], &nId); + if (nRet == WEBRTC_ERROR_NOT_SUPPORTED) { + dlog_print(DLOG_DEBUG, "NativeTCT", "[%s(%d)] camera feature is not supported, skip it", __FUNCTION__, __LINE__); + continue; + } PRINT_RESULT(WEBRTC_ERROR_NONE, nRet, "webrtc_add_media_source", WebRtcGetError(nRet)); nRet = webrtc_media_source_set_mute(g_hWebRtcHandle, nId, WEBRTC_MEDIA_TYPE_VIDEO, bSetMute);