Set display_visible FALSE in player_stop() tizen_2.1 accepted/tizen/20130520.100807 submit/tizen/20130517.044704 submit/tizen_2.1/20130514.052003
authorSangchul Lee <sc11.lee@samsung.com>
Tue, 7 May 2013 05:29:18 +0000 (14:29 +0900)
committerSangchul Lee <sc11.lee@samsung.com>
Tue, 7 May 2013 09:49:16 +0000 (18:49 +0900)
Change-Id: I1c9b624a45e1557486343d5d93595219541d22cc

packaging/capi-media-player.spec
src/player.c

index c417dd2fb217b7e7c5136f86460d512daef6a3e7..5906b8fae49009abbe494793ffebc8a6697ab200 100644 (file)
@@ -1,7 +1,7 @@
 Name:       capi-media-player
 Summary:    A Media Player library in Tizen Native API
 Version:    0.1.0
-Release:    56
+Release:    57
 Group:      TO_BE/FILLED_IN
 License:    TO BE FILLED IN
 Source0:    %{name}-%{version}.tar.gz
index 8f83b206aeeee24aab1d2077f2ddeb45cf0af935..86623423034a101450624e9a98c5c26c7cbc97cf 100644 (file)
@@ -942,13 +942,20 @@ int player_stop (player_h player)
                {
                        return __convert_error_code(ret,(char*)__FUNCTION__);
                }
-               else
+               if(handle->display_type == PLAYER_DISPLAY_TYPE_X11 || handle->display_type == PLAYER_DISPLAY_TYPE_EVAS)
                {
-                       handle->state = PLAYER_STATE_READY;
-                       handle->is_stopped = TRUE;
-                       LOGE("[%s] End", __FUNCTION__);
-                       return PLAYER_ERROR_NONE;
+                       ret = mm_player_set_attribute(handle->mm_handle, NULL,"display_visible" , 0, (char*)NULL);
+                       if(ret != MM_ERROR_NONE)
+                       {
+                               return __convert_error_code(ret,(char*)__FUNCTION__);
+                       }
+                       LOGE("[%s] show video display : %d",__FUNCTION__, ret);
                }
+
+               handle->state = PLAYER_STATE_READY;
+               handle->is_stopped = TRUE;
+               LOGE("[%s] End", __FUNCTION__);
+               return PLAYER_ERROR_NONE;
        }
        else
        {