From: Sangchul Lee Date: Tue, 3 Nov 2020 06:44:09 +0000 (+0900) Subject: webrtc_source: Use 'ball' pattern of videotestsrc for default X-Git-Tag: submit/tizen/20210729.023123~196 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8bc591b17190e6de1a29be7db29ef8eaf15927ed;p=platform%2Fcore%2Fapi%2Fwebrtc.git webrtc_source: Use 'ball' pattern of videotestsrc for default It is added to check frame rate variation more easily by looking at the display. [Version] 0.1.46 [Issue Type] Improvement Change-Id: I298cd809f2e17e21e694ca921223db8115f66027 Signed-off-by: Sangchul Lee --- diff --git a/packaging/capi-media-webrtc.spec b/packaging/capi-media-webrtc.spec index 36eb2fd9..20910378 100644 --- a/packaging/capi-media-webrtc.spec +++ b/packaging/capi-media-webrtc.spec @@ -1,6 +1,6 @@ Name: capi-media-webrtc Summary: A WebRTC library in Tizen Native API -Version: 0.1.45 +Version: 0.1.46 Release: 0 Group: Multimedia/API License: Apache-2.0 diff --git a/src/webrtc_source.c b/src/webrtc_source.c index e1310a84..a47743c1 100644 --- a/src/webrtc_source.c +++ b/src/webrtc_source.c @@ -397,7 +397,7 @@ static int __build_videotestsrc(webrtc_s *webrtc, webrtc_gst_slot_s *source, Gst LOG_ERROR("failed to create videotestsrc"); return WEBRTC_ERROR_INVALID_OPERATION; } - g_object_set(G_OBJECT(videotestsrc), "is-live", TRUE, NULL); + g_object_set(G_OBJECT(videotestsrc), "is-live", TRUE, "pattern", 18, NULL); /* 18: ball */ if ((ret = __create_rest_of_elements(webrtc, source, WEBRTC_MEDIA_SOURCE_TYPE_VIDEOTEST, &capsfilter, &videoenc, &videopay, &queue, &capsfilter2)) != WEBRTC_ERROR_NONE) return ret;