From: Gilbok Lee Date: Mon, 27 Apr 2020 04:16:27 +0000 (+0900) Subject: [0.6.228] Add log for debug X-Git-Tag: accepted/tizen/unified/20200506.100223~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=431d06ac5a185fa17e2e7621dbff3ed2c142ffcd;p=platform%2Fcore%2Fmultimedia%2Flibmm-player.git [0.6.228] Add log for debug Change-Id: Ib57ebfe9c486b24a33a96143ea32bf786be49ec6 --- diff --git a/src/mm_player_priv.c b/src/mm_player_priv.c index 0bb1322..ac67add 100644 --- a/src/mm_player_priv.c +++ b/src/mm_player_priv.c @@ -4352,10 +4352,6 @@ __mmplayer_gst_destroy_pipeline(mmplayer_t *player) if (mainbin[MMPLAYER_M_SRC_FAKESINK].gst) gst_object_unref(GST_OBJECT(mainbin[MMPLAYER_M_SRC_FAKESINK].gst)); - /* free avsysaudiosink - avsysaudiosink should be unref when destory pipeline just after start play with BT. - Because audiosink is created but never added to bin, and therefore it will not be unref when pipeline is destroyed. - */ MMPLAYER_FREEIF(audiobin); MMPLAYER_FREEIF(videobin); MMPLAYER_FREEIF(textbin); @@ -4464,7 +4460,7 @@ __mmplayer_gst_unrealize(mmplayer_t *player) /* destroy pipeline */ ret = __mmplayer_gst_destroy_pipeline(player); if (ret != MM_ERROR_NONE) { - LOGE("failed to destory pipeline"); + LOGE("failed to destroy pipeline"); return ret; } @@ -4731,7 +4727,7 @@ _mmplayer_create_player(MMHandleType handle) if (mm_resource_manager_create(MM_RESOURCE_MANAGER_APP_CLASS_MEDIA, __resource_release_cb, player, &player->resource_manager) != MM_RESOURCE_MANAGER_ERROR_NONE) { - LOGE("failed to initialize resource manager"); + LOGE("failed to create resource manager"); ret = MM_ERROR_PLAYER_INTERNAL; goto ERROR; } @@ -5008,16 +5004,17 @@ _mmplayer_destroy(MMHandleType handle) _mmplayer_release_video_capture(player); /* de-initialize resource manager */ - if (MM_RESOURCE_MANAGER_ERROR_NONE != mm_resource_manager_destroy( - player->resource_manager)) - LOGE("failed to deinitialize resource manager"); + if (mm_resource_manager_destroy(player->resource_manager) + != MM_RESOURCE_MANAGER_ERROR_NONE) + LOGE("failed to destroy resource manager"); + LOGD("resource manager is destroyed"); /* release miscellaneous information */ __mmplayer_release_misc(player); /* release pipeline */ - if (MM_ERROR_NONE != __mmplayer_gst_destroy_pipeline(player)) { - LOGE("failed to destory pipeline"); + if (__mmplayer_gst_destroy_pipeline(player) != MM_ERROR_NONE) { + LOGE("failed to destroy pipeline"); return MM_ERROR_PLAYER_INTERNAL; }