Fix timing issue about getting orientation tag info and setting rotation property... 41/79041/1 accepted/tizen/common/20160711.170423 accepted/tizen/ivi/20160711.084337 accepted/tizen/mobile/20160711.084118 accepted/tizen/tv/20160711.084219 accepted/tizen/wearable/20160711.084147 submit/tizen/20160711.030104
authorHyunil <hyunil46.park@samsung.com>
Fri, 8 Jul 2016 02:30:20 +0000 (11:30 +0900)
committerHyunil <hyunil46.park@samsung.com>
Fri, 8 Jul 2016 02:30:20 +0000 (11:30 +0900)
rotation is set when state change from READY to PAUSED

Change-Id: Ic2596f3928b518bab25dada5f81c2f433f1b54a1
Signed-off-by: Hyunil <hyunil46.park@samsung.com>
packaging/libmm-player.spec
src/mm_player_priv.c

index fab2987..6ed62ee 100644 (file)
@@ -1,6 +1,6 @@
 Name:       libmm-player
 Summary:    Multimedia Framework Player Library
-Version:    0.5.89
+Version:    0.5.90
 Release:    0
 Group:      Multimedia/Libraries
 License:    Apache-2.0
index a84cb77..634bfae 100644 (file)
@@ -10758,6 +10758,14 @@ _mmplayer_pause(MMHandleType hplayer) // @
                LOGE("failed to pause player. ret : 0x%x\n", ret);
        }
 
+       if (MMPLAYER_PREV_STATE(player) == MM_PLAYER_STATE_READY && MMPLAYER_CURRENT_STATE(player) == MM_PLAYER_STATE_PAUSED)
+       {
+               if ( MM_ERROR_NONE != _mmplayer_update_video_param( player, "display_rotation"))
+               {
+                       LOGE("failed to update display_rotation");
+               }
+       }
+
        MMPLAYER_FLEAVE();
 
        return ret;