From: Sangchul Lee Date: Fri, 19 Feb 2021 05:59:46 +0000 (+0900) Subject: webrtc_source: Set 'do-timestamp' to TRUE to appsrc in case of media packet source X-Git-Tag: submit/tizen/20210729.023123~129 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=871d752f160f9f96f4ff3da4fe587b4088a7deab;p=platform%2Fcore%2Fapi%2Fwebrtc.git webrtc_source: Set 'do-timestamp' to TRUE to appsrc in case of media packet source Setting 'emit-signals' to TRUE is also removed because it is default value. [Version] 0.1.112 [Issue Type] Improvement Change-Id: I390449180fd7ad91cde380d078a1a28b61ebc2a4 Signed-off-by: Sangchul Lee --- diff --git a/packaging/capi-media-webrtc.spec b/packaging/capi-media-webrtc.spec index 33428663..61f0b87a 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.111 +Version: 0.1.112 Release: 0 Group: Multimedia/API License: Apache-2.0 diff --git a/src/webrtc_source.c b/src/webrtc_source.c index c13d0b6e..ddac1fa7 100644 --- a/src/webrtc_source.c +++ b/src/webrtc_source.c @@ -871,7 +871,7 @@ static int __build_mediapacketsrc(webrtc_s *webrtc, webrtc_gst_slot_s *source) return WEBRTC_ERROR_INVALID_OPERATION; } - g_object_set(G_OBJECT(appsrc), "emit-signals", TRUE, "is-live", TRUE, "format", GST_FORMAT_TIME, NULL); + g_object_set(G_OBJECT(appsrc), "is-live", TRUE, "do-timestamp", TRUE, "format", GST_FORMAT_TIME, NULL); _connect_and_append_signal(&source->signals, G_OBJECT(appsrc), "need-data", G_CALLBACK(_appsrc_need_data_cb), source); _connect_and_append_signal(&source->signals, G_OBJECT(appsrc), "enough-data", G_CALLBACK(_appsrc_enough_data_cb), source);