[0.2.128] Fix typo error 95/238195/2
authorGilbok Lee <gilbok.lee@samsung.com>
Thu, 9 Jul 2020 08:43:33 +0000 (17:43 +0900)
committerGilbok Lee <gilbok.lee@samsung.com>
Fri, 10 Jul 2020 01:18:33 +0000 (10:18 +0900)
Change-Id: I9f6d2739472b8b80278db7764a32a69ef559c4f0

legacy/include/legacy_player.h
legacy/include/legacy_player_internal.h
legacy/src/legacy_player.c
muse/include/muse_player_msg.h
muse/src/muse_player.c
muse/src/muse_player_dispatcher.c

index f007843..95e3e01 100644 (file)
@@ -683,7 +683,7 @@ int legacy_player_is_looping(legacy_player_h player, bool *looping);
  *          If you want to change display handle after calling legacy_player_prepare(), you must use the same display type as what you set before.
  * @param[in]   player The handle to the media player
  * @param[in]   type The display type
- * @param[in]   wl_surface_id Wayland surface grobal id
+ * @param[in]   wl_surface_id Wayland surface global id
  * @return @c 0 on success,
  *         otherwise a negative error value
  * @retval #PLAYER_ERROR_NONE Successful
@@ -1338,7 +1338,7 @@ int legacy_player_set_subtitle_position_offset(legacy_player_h player, int milli
  * @retval #PLAYER_ERROR_INVALID_PARAMETER Invalid parameter
  * @retval #PLAYER_ERROR_INVALID_OPERATION Invalid operation
  * @retval #PLAYER_ERROR_INVALID_STATE Invalid player state
- * @retval #PLAYER_ERROR_NOT_SUPPORTD Not supported
+ * @retval #PLAYER_ERROR_NOT_SUPPORTED Not supported
  * @pre The player state must be one of these: #PLAYER_STATE_READY, #PLAYER_STATE_PLAYING, or #PLAYER_STATE_PAUSED
  */
 int legacy_player_get_current_track(legacy_player_h player, player_stream_type_e type, int *index);
@@ -1359,7 +1359,7 @@ int legacy_player_get_current_track(legacy_player_h player, player_stream_type_e
  * @retval #PLAYER_ERROR_INVALID_PARAMETER Invalid parameter
  * @retval #PLAYER_ERROR_INVALID_OPERATION Invalid operation
  * @retval #PLAYER_ERROR_INVALID_STATE Invalid player state
- * @retval #PLAYER_ERROR_NOT_SUPPORTD Not supported
+ * @retval #PLAYER_ERROR_NOT_SUPPORTED Not supported
  * @pre The player state must be one of these: #PLAYER_STATE_READY, #PLAYER_STATE_PLAYING, or #PLAYER_STATE_PAUSED
  */
 int legacy_player_get_track_language_code(legacy_player_h player, player_stream_type_e type, int index, char **code, int *len);
@@ -1377,7 +1377,7 @@ int legacy_player_get_track_language_code(legacy_player_h player, player_stream_
  * @retval #PLAYER_ERROR_INVALID_PARAMETER Invalid parameter
  * @retval #PLAYER_ERROR_INVALID_OPERATION Invalid operation
  * @retval #PLAYER_ERROR_INVALID_STATE Invalid player state
- * @retval #PLAYER_ERROR_NOT_SUPPORTD Not supported
+ * @retval #PLAYER_ERROR_NOT_SUPPORTED Not supported
  * @pre The player state must be one of these: #PLAYER_STATE_READY, #PLAYER_STATE_PLAYING, or #PLAYER_STATE_PAUSED
  */
 int legacy_player_get_track_count(legacy_player_h player, player_stream_type_e type, int *count);
@@ -1395,7 +1395,7 @@ int legacy_player_get_track_count(legacy_player_h player, player_stream_type_e t
  * @retval #PLAYER_ERROR_INVALID_PARAMETER Invalid parameter
  * @retval #PLAYER_ERROR_INVALID_OPERATION Invalid operation
  * @retval #PLAYER_ERROR_INVALID_STATE Invalid player state
- * @retval #PLAYER_ERROR_NOT_SUPPORTD Not supported
+ * @retval #PLAYER_ERROR_NOT_SUPPORTED Not supported
  * @pre The player state must be one of these: #PLAYER_STATE_READY, #PLAYER_STATE_PLAYING, or #PLAYER_STATE_PAUSED
  * @see legacy_player_get_current_track()
  */
index 9218c78..7f969d9 100644 (file)
@@ -68,10 +68,10 @@ int legacy_player_set_streaming_playback_rate(legacy_player_h player, float rate
 int legacy_player_set_media_stream_dynamic_resolution(legacy_player_h player, bool drc);
 
 /**
- * @brief Sets the data source (http or local file) to transite.
+ * @brief Sets the data source (http or local file) to transit.
  * @since_tizen 3.0
  *
- * @details Player will transite the media source as seamlessly as possible after finishing current playback.
+ * @details Player will transit the media source as seamlessly as possible after finishing current playback.
  *          If the function call is successful, the uri will be added at the end of uri list.
  *          You can add several uris and the set of uris will be played repeatedly if you call the player_set_looping().
  *          The first uri in the list is the original uri which is set by player_set_uri().
@@ -87,7 +87,7 @@ int legacy_player_set_media_stream_dynamic_resolution(legacy_player_h player, bo
  * @retval #PLAYER_ERROR_NONE Successful
  * @retval #PLAYER_ERROR_INVALID_OPERATION Invalid operation
  * @retval #PLAYER_ERROR_INVALID_STATE Invalid player state
- * @retval #PLAYER_ERROR_NOT_SUPPORTD Not supported
+ * @retval #PLAYER_ERROR_NOT_SUPPORTED Not supported
  * @pre The original uri must be set first by player_set_uri().
  * @pre The player state must be one of these: #PLAYER_STATE_IDLE, #PLAYER_STATE_READY, #PLAYER_STATE_PLAYING, or #PLAYER_STATE_PAUSED.
  * @see player_set_uri(), player_set_looping()
@@ -106,7 +106,7 @@ int legacy_player_set_next_uri(legacy_player_h player, const char *uri);
  * @retval #PLAYER_ERROR_NONE Successful
  * @retval #PLAYER_ERROR_INVALID_OPERATION Invalid operation
  * @retval #PLAYER_ERROR_INVALID_STATE Invalid player state
- * @retval #PLAYER_ERROR_NOT_SUPPORTD Not supported
+ * @retval #PLAYER_ERROR_NOT_SUPPORTED Not supported
  * @pre The player state must be one of these: #PLAYER_STATE_IDLE, #PLAYER_STATE_READY, #PLAYER_STATE_PLAYING, or #PLAYER_STATE_PAUSED.
  * @see player_set_uri()
  */
index f8d3fcb..58d0bec 100644 (file)
@@ -386,7 +386,7 @@ static int __lplayer_message_callback(int message, void *param, void *user_data)
                }
                break;
        case MM_MESSAGE_STATE_CHANGED:  /* 0x03 */
-               LOGI("state chagned from: %d, to: %d (CAPI State: %d)", msg->state.previous, msg->state.current, handle->state);
+               LOGI("state changed from: %d, to: %d (CAPI State: %d)", msg->state.previous, msg->state.current, handle->state);
                if (msg->state.previous == MM_PLAYER_STATE_READY && msg->state.current == MM_PLAYER_STATE_PAUSED) {
                        L_PLAYER_USER_CB_LOCK(handle, LEGACY_PLAYER_CALLBACK_TYPE_PREPARE);
                        if (handle->user_cb[LEGACY_PLAYER_CALLBACK_TYPE_PREPARE]) {
@@ -465,7 +465,7 @@ static int __lplayer_message_callback(int message, void *param, void *user_data)
                        handle->user_data[LEGACY_PLAYER_CALLBACK_TYPE_CAPTURE] = NULL;
                }
 
-               /* capure->data have to be released to avoid mem leak in all cases. */
+               /* capture->data have to be released to avoid mem leak in all cases. */
                if (capture) {
                        g_free(capture->data);
                        capture->data = NULL;
@@ -749,7 +749,7 @@ int legacy_player_destroy(legacy_player_h player)
 
        __lplayer_unset_callback(handle, LEGACY_PLAYER_CALLBACK_TYPE_PREPARE, true);
 
-       /* stop the pause state trasition to release prepare thread */
+       /* stop the pause state transition to release prepare thread */
        if (handle->internal_state == PLAYER_INTERNAL_STATE_PRE_READY)
                mm_player_abort_pause(handle->mm_handle);
 
@@ -824,7 +824,7 @@ int legacy_player_prepare_async(legacy_player_h player, legacy_player_prepared_c
 
        handle->last_play_position = 0;
        if (handle->user_cb[LEGACY_PLAYER_CALLBACK_TYPE_PREPARE]) {
-               LOGE("player is already prepareing");
+               LOGE("player is already preparing");
                L_PLAYER_USER_CB_UNLOCK(handle, LEGACY_PLAYER_CALLBACK_TYPE_PREPARE);
                __lplayer_update_state(handle, PLAYER_INTERNAL_STATE_IDLE);
                return PLAYER_ERROR_INVALID_OPERATION;
@@ -988,7 +988,7 @@ int legacy_player_unprepare(legacy_player_h player)
        }
        __lplayer_unset_callback(handle, LEGACY_PLAYER_CALLBACK_TYPE_PREPARE, true);
 
-       /* stop the pause state trasition to release prepare thread */
+       /* stop the pause state transition to release prepare thread */
        if (handle->internal_state == PLAYER_INTERNAL_STATE_PRE_READY)
                mm_player_abort_pause(handle->mm_handle);
 
@@ -1257,8 +1257,8 @@ int legacy_player_get_play_position(legacy_player_h player, int64_t *nanoseconds
        ret = mm_player_get_position(handle->mm_handle, &pos);
        if (ret != MM_ERROR_NONE) {
                if (ret == MM_ERROR_PLAYER_NOT_INITIALIZED) {
-                       /* During playbak if a interrupt is occurred, the player can be destroyed internally.
-                          libmm-player will post position msg with last playback position before destory pipeline */
+                       /* During playback if a interrupt is occurred, the player can be destroyed internally.
+                          libmm-player will post position msg with last playback position before destroy pipeline */
                        if (handle->state == PLAYER_STATE_IDLE) {
                                if (handle->last_play_position > 0)
                                        *nanoseconds = handle->last_play_position;
@@ -1805,7 +1805,7 @@ int legacy_player_audio_effect_equalizer_is_available(legacy_player_h player, bo
        if (ret != MM_ERROR_NONE)
                *available = false;
 
-       LOGD("audio effect is availeble %d", *available);
+       LOGD("audio effect is available %d", *available);
 
        return PLAYER_ERROR_NONE;
 }
index c586095..0a3ec84 100644 (file)
@@ -76,7 +76,7 @@ extern int _mplayer_disp_send_msg(int send_fd, char *msg, int *tfd);
  * @remarks Does NOT guarantee thread safe.
  * @param[out] param the name of param is key, must be local variable. never be pointer.
  * @param[in] buf string of message buffer. has key and value
- * @param[in] type The enum of parameter type. Muse be one of thease(INT, INT64, POINTER, DOUBLE)
+ * @param[in] type The enum of parameter type. Muse be one of these(INT, INT64, POINTER, DOUBLE)
  */
 #define player_msg_get_type(param, buf, type) \
        muse_core_msg_deserialize(#param, buf, NULL, NULL, MUSE_TYPE_##type, &param)
@@ -103,7 +103,7 @@ extern int _mplayer_disp_send_msg(int send_fd, char *msg, int *tfd);
  * @brief Create and send return message.
  * @remarks Does NOT guarantee thread safe.
  * @param[in] api The enum of module API.
- * @param[in] ret Thre result of API.
+ * @param[in] ret The result of API.
  * @param[in] module mused module information
  * @param[in] variadic argument The argument information to create return msg
  */
@@ -121,7 +121,7 @@ extern int _mplayer_disp_send_msg(int send_fd, char *msg, int *tfd);
  * @brief Create and send return message.
  * @remarks Does NOT guarantee thread safe.
  * @param[in] api The enum of module API.
- * @param[in] ret Thre result of API.
+ * @param[in] ret The result of API.
  * @param[in] module mused module information
  * @param[in] variadic argument The argument information to create return msg
  */
index 251c3ab..b8137bd 100644 (file)
@@ -518,7 +518,7 @@ static void __mplayer_capture_video_cb(unsigned char *data, int width, int heigh
        LOGD("ENTER");
 
        if (data == NULL || size == 0) {
-               LOGE("cature data is empty");
+               LOGE("capture data is empty");
                return;
        }
 
index eae981b..39207d0 100644 (file)
@@ -70,7 +70,7 @@ static int player_cmd_create_server_ack(muse_module_h module)
        return ret;
 }
 
-static int player_cmd_resouce_not_available(muse_module_h module)
+static int player_cmd_resource_not_available(muse_module_h module)
 {
        int ret = PLAYER_ERROR_RESOURCE_LIMIT;
        muse_player_api_e api = MUSE_PLAYER_API_CREATE;
@@ -112,7 +112,7 @@ int (*cmd_dispatcher[MUSE_MODULE_COMMAND_MAX])(muse_module_h module) = {
        player_cmd_shutdown,    /* MUSE_MODULE_COMMAND_SHUTDOWN */
        NULL,   /* MUSE_MODULE_COMMAND_DEBUG_INFO_DUMP */
        player_cmd_create_server_ack,   /* MUSE_MODULE_COMMAND_CREATE_SERVER_ACK */
-       player_cmd_resouce_not_available,       /* MUSE_MODULE_COMMAND_RESOURCE_NOT_AVAILABLE */
+       player_cmd_resource_not_available,      /* MUSE_MODULE_COMMAND_RESOURCE_NOT_AVAILABLE */
        player_cmd_external_storage_state_changed, /* MUSE_MODULE_COMMAND_EXTERNAL_STORAGE_STATE_CHANGED */
 };