From: Gilbok Lee Date: Thu, 12 Mar 2020 05:43:09 +0000 (+0900) Subject: [0.3.126] Don't check main thread if the display_type is NONE, In the set_display... X-Git-Tag: accepted/tizen/unified/20200403.034502~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F01%2F227501%2F1;p=platform%2Fcore%2Fapi%2Fplayer.git [0.3.126] Don't check main thread if the display_type is NONE, In the set_display function Change-Id: Ibdfd63d96d46b51dac8f69232a1f7df33aab604f --- diff --git a/packaging/capi-media-player.spec b/packaging/capi-media-player.spec index 046e8c5..78e7cbc 100644 --- a/packaging/capi-media-player.spec +++ b/packaging/capi-media-player.spec @@ -1,6 +1,6 @@ Name: capi-media-player Summary: A Media Player API -Version: 0.3.125 +Version: 0.3.126 Release: 0 Group: Multimedia/API License: Apache-2.0 diff --git a/src/player.c b/src/player.c index ffe6769..7f4eab4 100644 --- a/src/player.c +++ b/src/player.c @@ -3072,10 +3072,12 @@ int player_set_display(player_h player, player_display_type_e type, player_displ LOGD("ENTER"); - LOGD("Check if API is called in main thread. pid [%d], tid [%d]", pid, tid); - if (pid != tid) { - LOGE("API isn't called in main thread"); - return PLAYER_ERROR_INVALID_OPERATION; + if (type != PLAYER_DISPLAY_TYPE_NONE) { + LOGD("Check if API is called in main thread. pid [%d], tid [%d]", pid, tid); + if (pid != tid) { + LOGE("API isn't called in main thread"); + return PLAYER_ERROR_INVALID_OPERATION; + } } PLAYER_VIDEO_SUPPORTABLE_CHECK(pc);