webrtc_source: Rename variable 55/260955/1
authorSangchul Lee <sc11.lee@samsung.com>
Wed, 7 Jul 2021 11:03:01 +0000 (20:03 +0900)
committerSangchul Lee <sc11.lee@samsung.com>
Wed, 7 Jul 2021 11:03:30 +0000 (20:03 +0900)
This variable is used only for camerasrc mute functionality.

[Version] 0.2.35
[Issue Type] Rename

Change-Id: I7fdf3399df13f04a97d4b96c3c1996d3a65c7140
Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
include/webrtc_private.h
packaging/capi-media-webrtc.spec
src/webrtc_source.c

index 13c88a0df132599dbf7959f62d8e4883dc4a058c..58f863e06f658058f1979af554a2fd340d98f67a 100644 (file)
@@ -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;
index d62afe427c38261eae740be80fed5f51bacf0758..6d780db7aab9493f7ebfd5aed934de2e899c8e87 100644 (file)
@@ -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
index 5009ec8569546d709bdf3b0d2434097325f6fc44..7c239c9ec476d4091d5ff92d43158cdd45cb0605 100644 (file)
@@ -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;
                }
        }