/* 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; \
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) {
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
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");
/* 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"))) {
return;
}
- LOGD("pipeline has completely constructed\n");
+ LOGD("[handle: %p] pipeline has completely constructed", player);
if ((player->ini.async_start) &&
(player->msg_posted == FALSE) &&
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) {