From: Eunhae Choi Date: Tue, 5 Dec 2017 07:10:23 +0000 (+0900) Subject: [0.6.82] add handle info at debug msg X-Git-Tag: submit/tizen_4.0/20171213.082554~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=36ec23449c407b2d44ce7bc1ac5fbd5d49e7a30c;p=platform%2Fcore%2Fmultimedia%2Flibmm-player.git [0.6.82] add handle info at debug msg Change-Id: I6a3230fc4795e641aaaff749f1bab841615ebca6 --- diff --git a/src/include/mm_player_utils.h b/src/include/mm_player_utils.h index 0ff257a..881ddac 100644 --- a/src/include/mm_player_utils.h +++ b/src/include/mm_player_utils.h @@ -143,20 +143,20 @@ do { \ /* message posting */ #define MMPLAYER_POST_MSG(x_player, x_msgtype, x_msg_param) \ do { \ - LOGD("posting %s to application\n", #x_msgtype); \ + LOGD("[handle: %p] posting %s to application\n", x_player, #x_msgtype); \ __mmplayer_post_message(x_player, x_msgtype, x_msg_param); \ } while (0) /* setting player state */ #define MMPLAYER_SET_STATE(x_player, x_state) \ do { \ - LOGD("update state machine to %d\n", x_state); \ + LOGD("[handle: %p] update state machine to %d\n", x_player, x_state); \ __mmplayer_set_state(x_player, x_state); \ } while (0) #define MMPLAYER_CHECK_STATE(x_player, x_command) \ do { \ - LOGD("checking player state before doing %s\n", #x_command); \ + LOGD("[handle: %p] checking player state before doing %s\n", x_player, #x_command); \ switch (__mmplayer_check_state(x_player, x_command)) { \ case MM_ERROR_PLAYER_INVALID_STATE: \ return MM_ERROR_PLAYER_INVALID_STATE; \ diff --git a/src/mm_player_priv.c b/src/mm_player_priv.c index 1d292b4..0ed23d6 100644 --- a/src/mm_player_priv.c +++ b/src/mm_player_priv.c @@ -1127,7 +1127,7 @@ static gpointer __mmplayer_gst_bus_msg_thread(gpointer data) MMPLAYER_BUS_MSG_THREAD_LOCK(player); - LOGD("gst bus msg thread will be started."); + LOGD("[handle: %p] gst bus msg thread will be started.", player); while (!player->bus_msg_thread_exit) { msg = gst_bus_pop(bus); if (msg == NULL) { @@ -3585,7 +3585,7 @@ __mmplayer_gst_decode_callback(GstElement *elem, GstPad *pad, gpointer data) sinkpad = NULL; } - LOGD("linking sink bin success\n"); + LOGD("[handle: %p] linking sink bin success", player); /* FIXIT : we cannot hold callback for 'no-more-pad' signal because signal was emitted in * streaming task. if the task blocked, then buffer will not flow to the next element @@ -8171,7 +8171,7 @@ void __mmplayer_sound_focus_watch_callback(int id, mm_sound_focus_type_e focus_t int result = MM_ERROR_NONE; MMPlayerFocusChangedMsg msg = MM_PLAYER_FOCUS_CHANGED_BY_UNKNOWN; - LOGW("focus watch notified"); + LOGW("[handle: %p] focus watch notified", player); if (!__mmplayer_can_do_interrupt(player)) { LOGW("no need to interrupt, so leave"); @@ -10059,8 +10059,10 @@ GstCaps *caps, gpointer data) /* store type string */ MMPLAYER_FREEIF(player->type); player->type = gst_caps_to_string(caps); - if (player->type) - LOGD("media type %s found, probability %d%% / %d\n", player->type, probability, gst_caps_get_size(caps)); + if (player->type) { + LOGD("[handle: %p] media type %s found, probability %d%% / %d\n", + player, player->type, probability, gst_caps_get_size(caps)); + } if ((!MMPLAYER_IS_RTSP_STREAMING(player)) && (g_strrstr(player->type, "audio/x-raw-int"))) { @@ -10431,7 +10433,7 @@ __mmplayer_pipeline_complete(GstElement *decodebin, gpointer data) return; } - LOGD("pipeline has completely constructed\n"); + LOGD("[handle: %p] pipeline has completely constructed", player); if ((player->ini.async_start) && (player->msg_posted == FALSE) && @@ -11247,7 +11249,7 @@ GstCaps* caps, GstElementFactory* factory, gpointer data) klass = gst_element_factory_get_metadata(factory, GST_ELEMENT_METADATA_KLASS); caps_str = gst_caps_to_string(caps); - LOGD("found new element [%s] to link", factory_name); + LOGD("[handle: %p] found new element [%s] to link", player, factory_name); /* store type string */ if (player->type == NULL) {