[UTC][webrtc][Non-ACR] Return success when WEBRTC_ERROR_NOT_SUPPORTED occurs 54/284354/1
authorSangchul Lee <sc11.lee@samsung.com>
Wed, 16 Nov 2022 06:35:44 +0000 (15:35 +0900)
committerSangchul Lee <sc11.lee@samsung.com>
Wed, 16 Nov 2022 06:35:58 +0000 (15:35 +0900)
Some tizen features are not supported in VD binary.

Change-Id: If444cede45da85bcecaa6a79b8ad6bc36af0e6cf
Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
src/utc/webrtc/utc-media-webrtc.c

index 0184e19f637198598305c00cab5c5cd06183e854..675f0bf4eab623cbe7ada756b5d6a2b9abcd98e3 100644 (file)
@@ -1554,6 +1554,10 @@ int utc_media_webrtc_camera_source_set_device_id_p(void)
        unsigned int device_id;
 
        ret = webrtc_add_media_source(g_webrtc, WEBRTC_MEDIA_SOURCE_TYPE_CAMERA, &id);
+       if (ret == WEBRTC_ERROR_NOT_SUPPORTED) {
+               dlog_print(DLOG_DEBUG, "NativeTCT", "[%s(%d)] camera feature is not supported, skip it", __FUNCTION__, __LINE__);
+               return 0;
+       }
        assert_eq(ret, WEBRTC_ERROR_NONE);
 
        ret = webrtc_camera_source_set_device_id(g_webrtc, id, 1);
@@ -1603,6 +1607,10 @@ int utc_media_webrtc_camera_source_get_device_id_p(void)
        unsigned int device_id;
 
        ret = webrtc_add_media_source(g_webrtc, WEBRTC_MEDIA_SOURCE_TYPE_CAMERA, &id);
+       if (ret == WEBRTC_ERROR_NOT_SUPPORTED) {
+               dlog_print(DLOG_DEBUG, "NativeTCT", "[%s(%d)] camera feature is not supported, skip it", __FUNCTION__, __LINE__);
+               return 0;
+       }
        assert_eq(ret, WEBRTC_ERROR_NONE);
 
        ret = webrtc_camera_source_get_device_id(g_webrtc, id, &device_id);