diff options
author | Hyunil <hyunil46.park@samsung.com> | 2019-08-23 15:09:49 +0900 |
---|---|---|
committer | Hyunil <hyunil46.park@samsung.com> | 2019-08-23 15:26:33 +0900 |
commit | b60eafdbb8e2ebee8eed4475008e6fbb4fc5fa0b (patch) | |
tree | f934af0d04707d6b3db03ebddf43d7241de25174 | |
parent | 02ca170dea3ce3e5ee00c655eeebb12b88a8dd88 (diff) | |
download | libmm-player-b60eafdbb8e2ebee8eed4475008e6fbb4fc5fa0b.tar.gz libmm-player-b60eafdbb8e2ebee8eed4475008e6fbb4fc5fa0b.tar.bz2 libmm-player-b60eafdbb8e2ebee8eed4475008e6fbb4fc5fa0b.zip |
use-tbm is set to true when the condition is true
Change-Id: I647a57f24290ac2643250b9075c770255badb46f
Signed-off-by: Hyunil <hyunil46.park@samsung.com>
-rw-r--r-- | src/mm_player_priv.c | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/src/mm_player_priv.c b/src/mm_player_priv.c index d297f1e..c955e14 100644 --- a/src/mm_player_priv.c +++ b/src/mm_player_priv.c @@ -3453,23 +3453,21 @@ __mmplayer_gst_set_videosink_property(mmplayer_t *player, MMDisplaySurfaceType s return MM_ERROR_PLAYER_INTERNAL; } - LOGD("surface type %d, videosink factory name is %s", surface_type, factory_name); if (surface_type == MM_DISPLAY_SURFACE_OVERLAY) { bool use_tbm = (player->set_mode.video_zc || (player->is_360_feature_enabled && player->is_content_spherical)); - if (!use_tbm) { - /* support shard memory with S/W codec on HawkP */ - if (strncmp(factory_name, "tizenwlsink", strlen(factory_name)) == 0) { - g_object_set(player->pipeline->videobin[MMPLAYER_V_SINK].gst, - "use-tbm", use_tbm, NULL); - } - } + if (strncmp(factory_name, "tizenwlsink", strlen(factory_name)) == 0) { + g_object_set(player->pipeline->videobin[MMPLAYER_V_SINK].gst, + "use-tbm", use_tbm, NULL); + } if (_mmplayer_update_video_overlay_param(player, "update_all_param") != MM_ERROR_NONE) return MM_ERROR_PLAYER_INTERNAL; + } else { g_object_set(G_OBJECT(player->pipeline->videobin[MMPLAYER_V_SINK].gst), "sync", TRUE, "max-lateness", FAKE_SINK_MAX_LATENESS, NULL); } + LOGD("surface type : %d, videosink factory name is %s use-tbm : %d", surface_type, factory_name, use_tbm); mm_attrs_get_int_by_name(attrs, MM_PLAYER_GAPLESS_MODE, &gapless); if (gapless > 0) { |