[v0.3.36] change context of error cb 11/101911/1
authorEunhae Choi <eunhae1.choi@samsung.com>
Fri, 2 Dec 2016 10:23:46 +0000 (19:23 +0900)
committereunhae choi <eunhae1.choi@samsung.com>
Fri, 2 Dec 2016 10:24:37 +0000 (02:24 -0800)
Change-Id: I14bd29c054b3a288c42f30190a7bb5fc27bf39db

include/common/player.h
include/wearable/player.h
packaging/capi-media-player.spec
src/player.c

index a668837..77f9e13 100644 (file)
@@ -1707,7 +1707,6 @@ int player_unset_interrupted_cb(player_h player);
 /**
  * @brief Registers a callback function to be invoked when an error occurs.
  * @since_tizen 2.3
- * @remarks The callback is called in a seperate thread (not in the main loop).
  * @param[in] player   The handle to the media player
  * @param[in] callback The callback function to register
  * @param[in] user_data        The user data to be passed to the callback function
index e1307f2..33074d5 100644 (file)
@@ -1708,7 +1708,6 @@ int player_unset_interrupted_cb(player_h player);
 /**
  * @brief Registers a callback function to be invoked when an error occurs.
  * @since_tizen 2.3.1
- * @remarks The callback is called in a seperate thread (not in the main loop).
  * @param[in] player   The handle to the media player
  * @param[in] callback The callback function to register
  * @param[in] user_data        The user data to be passed to the callback function
index 484933f..23a73ab 100644 (file)
@@ -1,6 +1,6 @@
 Name:       capi-media-player
 Summary:    A Media Player API
-Version:    0.3.35
+Version:    0.3.36
 Release:    0
 Group:      Multimedia/API
 License:    Apache-2.0
index 4b4d105..b1c8cb9 100644 (file)
@@ -1107,7 +1107,8 @@ static bool _player_need_sync_context(int event_id)
        if ((event_id == MUSE_PLAYER_EVENT_TYPE_INTERRUPT) ||
                (event_id == MUSE_PLAYER_EVENT_TYPE_BUFFERING) ||
                (event_id == MUSE_PLAYER_EVENT_TYPE_PD) ||
-               (event_id == MUSE_PLAYER_EVENT_TYPE_COMPLETE)) {
+               (event_id == MUSE_PLAYER_EVENT_TYPE_COMPLETE) ||
+               (event_id == MUSE_PLAYER_EVENT_TYPE_ERROR)) {
                LOGD("%d callback will be issued in the mainloop.", event_id);
                return TRUE;
        } else {
@@ -2222,6 +2223,8 @@ int player_set_play_position(player_h player, int millisecond, bool accurate, pl
 
        pc->cb_info->block_seek_cb = FALSE;
        g_free(ret_buf);
+
+       LOGD("LEAVE");
        return ret;
 }