webrtc_source: Use 'ball' pattern of videotestsrc for default 87/246687/2
authorSangchul Lee <sc11.lee@samsung.com>
Tue, 3 Nov 2020 06:44:09 +0000 (15:44 +0900)
committerSangchul Lee <sc11.lee@samsung.com>
Wed, 4 Nov 2020 02:00:59 +0000 (11:00 +0900)
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 <sc11.lee@samsung.com>
packaging/capi-media-webrtc.spec
src/webrtc_source.c

index 36eb2fd9729f2bfc25251b41223402dd013b523b..209103788df877b9092a0e783f213238b1adcc1b 100644 (file)
@@ -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
index e1310a84d00863df362f4a0b65c864042f635e7f..a47743c100fe152fe8e6960bb56005eb2e4b629c 100644 (file)
@@ -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;