[ITC][webrtc][non-ACR] Skip when WEBRTC_ERROR_NOT_SUPPORTED error occurs 40/272340/1
authorSangchul Lee <sc11.lee@samsung.com>
Tue, 15 Mar 2022 02:42:03 +0000 (11:42 +0900)
committerSangchul Lee <sc11.lee@samsung.com>
Tue, 15 Mar 2022 04:22:14 +0000 (13:22 +0900)
Change-Id: Ifc51dd985178b320a68606c487f11c2ea55d49cf
Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
src/itc/webrtc/ITs-webrtc.c

index 5beda659fda7e0e34411d993dcca269de9a23198..674fb55917bec4c1c1523cc4dea085eb4ffccc39 100755 (executable)
@@ -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);