From: Sangchul Lee Date: Wed, 7 Jul 2021 11:03:01 +0000 (+0900) Subject: webrtc_source: Rename variable X-Git-Tag: submit/tizen/20210729.023123~25 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e1ada8859fb04bd8ee82df9262cc38a14f9e04dc;p=platform%2Fcore%2Fapi%2Fwebrtc.git webrtc_source: Rename variable This variable is used only for camerasrc mute functionality. [Version] 0.2.35 [Issue Type] Rename Change-Id: I7fdf3399df13f04a97d4b96c3c1996d3a65c7140 Signed-off-by: Sangchul Lee --- diff --git a/include/webrtc_private.h b/include/webrtc_private.h index 13c88a0d..58f863e0 100644 --- a/include/webrtc_private.h +++ b/include/webrtc_private.h @@ -447,7 +447,7 @@ typedef struct _webrtc_gst_slot_s { GstAllocator *allocator; webrtc_callbacks_s buffer_state_changed_cb; webrtc_callbacks_s *encoded_frame_cb; - gulong probe_id; + gulong camerasrc_probe_id; bool video_muted; webrtc_display_s *display; diff --git a/packaging/capi-media-webrtc.spec b/packaging/capi-media-webrtc.spec index d62afe42..6d780db7 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.2.34 +Version: 0.2.35 Release: 0 Group: Multimedia/API License: Apache-2.0 diff --git a/src/webrtc_source.c b/src/webrtc_source.c index 5009ec85..7c239c9e 100644 --- a/src/webrtc_source.c +++ b/src/webrtc_source.c @@ -2520,7 +2520,7 @@ exit: return ret; } -static GstPadProbeReturn __buffer_probe_cb(GstPad *pad, GstPadProbeInfo *info, gpointer u_data) +static GstPadProbeReturn __camerasrc_probe_cb(GstPad *pad, GstPadProbeInfo *info, gpointer u_data) { GstBuffer *buffer = gst_pad_probe_info_get_buffer(info); GstMemory *mem = NULL; @@ -2573,23 +2573,23 @@ static int __mute_camerasrc(webrtc_gst_slot_s *source, bool mute) src_pad = gst_element_get_static_pad(camerasrc, "src"); if (mute) { - if (source->probe_id != 0) { + if (source->camerasrc_probe_id != 0) { LOG_ERROR("fail to change to mute"); ret = WEBRTC_ERROR_INVALID_OPERATION; } else { - source->probe_id = gst_pad_add_probe(src_pad, GST_PAD_PROBE_TYPE_BUFFER, __buffer_probe_cb, NULL, NULL); - if (source->probe_id == 0) { + source->camerasrc_probe_id = gst_pad_add_probe(src_pad, GST_PAD_PROBE_TYPE_BUFFER, __camerasrc_probe_cb, NULL, NULL); + if (source->camerasrc_probe_id == 0) { LOG_ERROR("failed to gst_pad_add_probe()"); ret = WEBRTC_ERROR_INVALID_OPERATION; } } } else { - if (source->probe_id == 0) { + if (source->camerasrc_probe_id == 0) { LOG_ERROR("fail to change to unmute"); ret = WEBRTC_ERROR_INVALID_OPERATION; } else { - gst_pad_remove_probe(src_pad, source->probe_id); - source->probe_id = 0; + gst_pad_remove_probe(src_pad, source->camerasrc_probe_id); + source->camerasrc_probe_id = 0; } }