Fix typos and grammar errors 67/231467/3
authorSangchul Lee <sc11.lee@samsung.com>
Wed, 22 Apr 2020 05:35:21 +0000 (14:35 +0900)
committerSangchul Lee <sc11.lee@samsung.com>
Wed, 22 Apr 2020 08:00:25 +0000 (17:00 +0900)
[Version] 0.1.32
[Issue Type] Typo

Change-Id: Ieb5fd1776c10b27939f700e359664367c45a1015
Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
include/media_streamer_gst.h
packaging/capi-media-streamer.spec
src/media_streamer.c
src/media_streamer_gst.c
src/media_streamer_http_server.c
src/media_streamer_node.c
src/media_streamer_node_policy.c

index b9d1494..a1669e1 100644 (file)
@@ -206,7 +206,7 @@ int __ms_pipeline_prepare(media_streamer_s *ms_streamer);
 
 /**
  * @brief Unprepares Media Streamer pipeline and unlink nodes
- *        which user did't link before.
+ *        which user didn't link before.
  *
  * @since_tizen 3.0
  */
@@ -283,7 +283,7 @@ int __ms_element_push_packet(GstElement *src_element, media_packet_h packet);
 int __ms_element_pull_packet(GstElement *sink_element, media_packet_h *packet);
 
 /**
- * @brief Prepare demuxer elemetn for playing.
+ * @brief Prepare demuxer element for playing.
  *
  * @since_tizen 3.0
  */
index f3293ce..b562437 100644 (file)
@@ -1,6 +1,6 @@
 Name:       capi-media-streamer
 Summary:    A Media Streamer API
-Version:    0.1.31
+Version:    0.1.32
 Release:    0
 Group:      Multimedia/API
 License:    Apache-2.0
index 149b362..1d0700e 100644 (file)
@@ -632,7 +632,7 @@ int media_streamer_set_play_position(media_streamer_h streamer, int time, bool a
 
        ms_retvm_if(ms_streamer == NULL, MEDIA_STREAMER_ERROR_INVALID_PARAMETER, "streamer is NULL");
        ms_retvm_if(ms_streamer->state < MEDIA_STREAMER_STATE_PLAYING || ms_streamer->state > MEDIA_STREAMER_STATE_PAUSED, MEDIA_STREAMER_ERROR_INVALID_STATE, "The media streamer state is not in the appropriate state");
-       /* Notify: the seeking must be reseted while streamer got ASYNC_DONE message */
+       /* Notify: the seeking must be reset while streamer got ASYNC_DONE message */
        ms_retvm_if(ms_streamer->is_seeking, MEDIA_STREAMER_ERROR_INVALID_STATE, "Media streamer is seeking");
 
        g_mutex_lock(&ms_streamer->mutex_lock);
index dd9e5b2..1bcef02 100644 (file)
@@ -1127,7 +1127,7 @@ int __ms_adaptive_element_prepare(media_streamer_node_s *ms_node, bool auto_plug
 
        if (!auto_plug) {
                plugin_name = __ms_ini_get_string("node type 1:adaptive", DEFAULT_ADAPTIVE_SOURCE);
-               ms_retvm_if(plugin_name == NULL, MEDIA_STREAMER_ERROR_INVALID_PARAMETER, "Error empty plugin name for adaprive source");
+               ms_retvm_if(plugin_name == NULL, MEDIA_STREAMER_ERROR_INVALID_PARAMETER, "Error empty plugin name for adaptive source");
                ms_info("Creating [%s] element", plugin_name);
                plugin_elem = gst_element_factory_make(plugin_name, NULL);
                g_free(plugin_name);
@@ -1388,7 +1388,7 @@ GstElement *__ms_video_encoder_element_create(node_plug_s *plug_info)
        enc_caps = plug_info->src_caps;
        if (!enc_caps) {
                enc_caps = gst_caps_from_string(MEDIA_STREAMER_DEFAULT_VIDEO_FORMAT);
-               ms_debug("No Video encoding format is set! Deafault will be: [%s]", MEDIA_STREAMER_DEFAULT_VIDEO_FORMAT);
+               ms_debug("No Video encoding format is set! Default will be: [%s]", MEDIA_STREAMER_DEFAULT_VIDEO_FORMAT);
        }
 
        /* Creating Scaler, Converter */
@@ -1489,7 +1489,7 @@ GstElement *__ms_video_decoder_element_create(node_plug_s *plug_info)
        dec_caps = plug_info->sink_caps;
        if (!dec_caps) {
                dec_caps = gst_caps_from_string(MEDIA_STREAMER_DEFAULT_VIDEO_FORMAT);
-               ms_debug("No Video decoding format is set! Deafault will be: [%s]", MEDIA_STREAMER_DEFAULT_VIDEO_FORMAT);
+               ms_debug("No Video decoding format is set! Default will be: [%s]", MEDIA_STREAMER_DEFAULT_VIDEO_FORMAT);
        }
 
        /* Creating Video Decoder */
@@ -1602,7 +1602,7 @@ GstElement *__ms_audio_encoder_element_create(node_plug_s *plug_info)
        enc_caps = plug_info->src_caps;
        if (!enc_caps) {
                enc_caps = gst_caps_from_string(MEDIA_STREAMER_DEFAULT_AUDIO_FORMAT);
-               ms_debug("No Audio encoding format is set! Deafault will be: [%s]", MEDIA_STREAMER_DEFAULT_AUDIO_FORMAT);
+               ms_debug("No Audio encoding format is set! Default will be: [%s]", MEDIA_STREAMER_DEFAULT_AUDIO_FORMAT);
        }
 
        /* Creating Converter, Resampler, Filter */
@@ -1686,7 +1686,7 @@ GstElement *__ms_audio_decoder_element_create(node_plug_s *plug_info)
        dec_caps = plug_info->sink_caps;
        if (!dec_caps) {
                dec_caps = gst_caps_from_string(MEDIA_STREAMER_DEFAULT_AUDIO_FORMAT);
-               ms_debug("No Audio decoding format is set! Deafault will be: [%s]", MEDIA_STREAMER_DEFAULT_AUDIO_FORMAT);
+               ms_debug("No Audio decoding format is set! Default will be: [%s]", MEDIA_STREAMER_DEFAULT_AUDIO_FORMAT);
        }
 
        /* Creating Audio Decoder */
index 5f59675..d42dee1 100644 (file)
@@ -264,7 +264,7 @@ static void __ms_http_server_connection_handle_cb(SoupServer *server, SoupMessag
        char *file_path = NULL;
        const char *extension = NULL;
 
-       /* Close connetion if handle is NULL */
+       /* Close connection if handle is NULL */
        ms_retm_if(hserver == NULL, "server is NULL");
        ms_retm_if(msg == NULL || msg->method == NULL || msg->request_headers == NULL, "msg is NULL");
        ms_retm_if(path == NULL, "path is NULL");
@@ -287,7 +287,7 @@ static void __ms_http_server_connection_handle_cb(SoupServer *server, SoupMessag
 
                mime_type_get_mime_type(extension, &mime_type);
 
-               ms_info("Recieved URI %s", path + 1);
+               ms_info("Received URI %s", path + 1);
                ms_info("mime-type: %s", mime_type);
 
                if (MEDIA_STREAMER_ERROR_NONE !=
index e75a856..f254004 100644 (file)
@@ -425,7 +425,7 @@ static int __ms_node_check_privileges(media_streamer_node_s *node)
                }
        }
 
-       /* Skip checking for privilige permission in case of other types of Nodes */
+       /* Skip checking for privilege permission in case of other types of Nodes */
        if (privilege == NULL)
                return ret;
 
@@ -942,9 +942,9 @@ static gboolean _src_node_prepare(const GValue *item, GValue *ret, gpointer user
 
        found_node = (media_streamer_node_s *) g_hash_table_lookup(ms_streamer->nodes_table, GST_ELEMENT_NAME(src_element));
        if (!found_node) {
-               /* If we fail to found corresonding node inside streamer
-                       then apprently this element doesn't require resources. */
-               ms_debug("Failed to found corresonding node [%s] inside streamer", GST_ELEMENT_NAME(src_element));
+               /* If we fail to find corresponding node inside streamer
+                       then apparently this element doesn't require resources. */
+               ms_debug("Failed to find corresponding node [%s] inside streamer", GST_ELEMENT_NAME(src_element));
                g_value_set_boolean(ret, TRUE);
                return TRUE;
        }
@@ -1622,10 +1622,9 @@ int _media_streamer_get_wl_info(Evas_Object *obj, media_streamer_wl_info_s *wl_i
                goto _DONE;
        }
 
-       /* Get parent_id which is unique in a entire systemw. */
        tz_resource = tizen_surface_get_tizen_resource(tz_surface, surface);
        if (!tz_resource) {
-               LOGE("failed to get tizen resurce");
+               LOGE("failed to get tizen resource");
                ret = MEDIA_STREAMER_ERROR_INVALID_OPERATION;
                goto _DONE;
        }
@@ -1675,7 +1674,7 @@ _DONE:
 /**
  * @brief Set display for video sink.
  *
- * @sinse_tizen 3.0
+ * @since_tizen 3.0
  */
 int __ms_node_set_display(media_streamer_node_s *ms_node, const char *param_value)
 {
@@ -1828,9 +1827,9 @@ gboolean _ms_node_resources_acquire_iter(const GValue *item, GValue *ret, gpoint
        node = (media_streamer_node_s *) g_hash_table_lookup(ms_streamer->nodes_table,
                GST_ELEMENT_NAME(element));
        if (!node) {
-               /* If we fail to found corresonding node inside streamer
-                       then apprently this element doesn't require resources */
-               ms_info("Failed to found corresonding node [%s] inside streamer", GST_ELEMENT_NAME(element));
+               /* If we fail to find corresponding node inside streamer
+                       then apparently this element doesn't require resources */
+               ms_info("Failed to find corresponding node [%s] inside streamer", GST_ELEMENT_NAME(element));
                g_value_set_boolean(ret, TRUE);
                g_object_unref(element);
                return TRUE;
@@ -1871,9 +1870,9 @@ gboolean _ms_node_resources_release_iter(const GValue *item, GValue *ret, gpoint
        node = (media_streamer_node_s *) g_hash_table_lookup(ms_streamer->nodes_table,
                GST_ELEMENT_NAME(element));
        if (!node) {
-               /* If we fail to found corresonding node inside streamer
-                       then apprently this element doesn't require resources. */
-               ms_debug("Failed to found corresonding node [%s] inside streamer", GST_ELEMENT_NAME(element));
+               /* If we fail to find corresponding node inside streamer
+                       then apparently this element doesn't require resources. */
+               ms_debug("Failed to find corresponding node [%s] inside streamer", GST_ELEMENT_NAME(element));
                g_value_set_boolean(ret, TRUE);
                g_object_unref(element);
                return TRUE;
@@ -1915,9 +1914,9 @@ gboolean _ms_node_policy_check_iter(const GValue *item, GValue *ret, gpointer us
        node = (media_streamer_node_s *) g_hash_table_lookup(ms_streamer->nodes_table,
                GST_ELEMENT_NAME(element));
        if (!node) {
-               /* If we fail to found corresonding node inside streamer
-                       then apprently this element doesn't require resources */
-               ms_info("Failed to found corresonding node [%s] inside streamer", GST_ELEMENT_NAME(element));
+               /* If we fail to find corresponding node inside streamer
+                       then apparently this element doesn't require resources */
+               ms_info("Failed to find corresponding node [%s] inside streamer", GST_ELEMENT_NAME(element));
                g_value_set_boolean(ret, TRUE);
                g_object_unref(element);
                return TRUE;
index b90d777..e8bea78 100644 (file)
@@ -75,8 +75,8 @@ static void __ms_node_policy_changed_cb(const char *name, const char *value, voi
        streamer = (media_streamer_s *) node->parent_streamer;
        ms_info("Received policy_changed_cb from node [%s]", node->name);
 
-       /* Here we perform action to release resources relases that
-          were previoursly acquired. Basically what we need to do is
+       /* Here we perform action to release resources that
+          were previously acquired. Basically, what we need to do is
           to unprepare media streamer.*/
        g_mutex_lock(&streamer->mutex_lock);
        streamer->is_interrupted = TRUE;