[ITC][webrtc][Non-ACR] Revise ITc_webrtc_file_source_set_path_p() 55/281255/1
authorSangchul Lee <sc11.lee@samsung.com>
Thu, 15 Sep 2022 02:55:51 +0000 (11:55 +0900)
committerSangchul Lee <sc11.lee@samsung.com>
Thu, 15 Sep 2022 02:55:51 +0000 (11:55 +0900)
Change-Id: I34e9e1ed78406e642c1229b37d6668a858055c72
Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
src/itc/webrtc/ITs-webrtc.c

index 231465ce7d00ae49ec5973061669eb900ca5e49c..544ae3311792fde9c85d8961221f276194e14d99 100755 (executable)
@@ -1987,7 +1987,7 @@ int ITc_webrtc_file_source_set_get_looping_p(void)
 * @description                 Sets media path of the file source.
 * @scenario                            Sets media path of the file source.
 * @apicovered                  webrtc_file_source_set_path
-* @passcase                            If webrtc_file_source_set_path is successfull
+* @passcase                            If webrtc_file_source_set_path is successful
 * @failcase                    If webrtc_file_source_set_path fails
 * @precondition                        NA
 * @postcondition               NA
@@ -2020,6 +2020,10 @@ int ITc_webrtc_file_source_set_path_p(void)
        nRet = webrtc_file_source_set_path(g_hWebRtcHandle, nId, g_pszFilePath);
        PRINT_RESULT(WEBRTC_ERROR_NONE, nRet, "webrtc_file_source_set_path", WebRtcGetError(nRet));
 
+       /* one more call for increasing code/function coverage, it'll release resources created by the previous call */
+       nRet = webrtc_file_source_set_path(g_hWebRtcHandle, nId, g_pszFilePath);
+       PRINT_RESULT(WEBRTC_ERROR_NONE, nRet, "webrtc_file_source_set_path", WebRtcGetError(nRet));
+
        g_mutex_lock(&cb_data.mutex);
 
        nRet = webrtc_start(g_hWebRtcHandle);