LOGD("state %s, spherical info %d",
MMPLAYER_STATE_GET_NAME(MMPLAYER_CURRENT_STATE(player)), player->is_content_spherical);
LOGD("state %s, spherical info %d",
MMPLAYER_STATE_GET_NAME(MMPLAYER_CURRENT_STATE(player)), player->is_content_spherical);
if (player->is_content_spherical && __mmplayer_check_video_360_used(player)) {
/* We will get here if player is pending ready or ready and above */
if (player->is_content_spherical && __mmplayer_check_video_360_used(player)) {
/* We will get here if player is pending ready or ready and above */
if (player->is_content_spherical && __mmplayer_check_video_360_used(player)) {
g_object_get(G_OBJECT(player->pipeline->videobin[MMPLAYER_V_360].gst),
if (player->is_content_spherical && __mmplayer_check_video_360_used(player)) {
g_object_get(G_OBJECT(player->pipeline->videobin[MMPLAYER_V_360].gst),
- "passthrough", enabled, NULL);
- *enabled = !(*enabled);
-
- LOGD("get enabled %d", *enabled);
- return MM_ERROR_NONE;
+ "passthrough", &is_enabled, NULL);
+ *enabled = !((bool)is_enabled);
+ } else {
+ *enabled = (bool)player->is_video360_enabled;
if (__mmplayer_check_video_360_used(player)) {
LOGD("set yaw %f, pitch %f for video", yaw, pitch);
g_object_set(G_OBJECT(player->pipeline->videobin[MMPLAYER_V_360].gst),
if (__mmplayer_check_video_360_used(player)) {
LOGD("set yaw %f, pitch %f for video", yaw, pitch);
g_object_set(G_OBJECT(player->pipeline->videobin[MMPLAYER_V_360].gst),
- "pose-yaw", (int) (yaw * 180.0f / M_PI),
- "pose-pitch", (int) (pitch * 180.0f / M_PI), NULL);
+ "pose-yaw", (int)(yaw * 180.0f / M_PI),
+ "pose-pitch", (int)(pitch * 180.0f / M_PI), NULL);
}
if (player->is_openal_plugin_used && __mmplayer_check_audio_sink(player)) {
g_object_set(G_OBJECT(player->pipeline->audiobin[MMPLAYER_A_SINK].gst),
}
if (player->is_openal_plugin_used && __mmplayer_check_audio_sink(player)) {
g_object_set(G_OBJECT(player->pipeline->audiobin[MMPLAYER_A_SINK].gst),
- "source-orientation-y", (int) (yaw * 180.0f / M_PI),
- "source-orientation-x", (int) (pitch * 180.0f / M_PI), NULL);
+ "source-orientation-y", (int)(yaw * 180.0f / M_PI),
+ "source-orientation-x", (int)(pitch * 180.0f / M_PI), NULL);
- LOGD("get yaw %f, pitch %f", yaw, pitch);
+ LOGD("get yaw %f, pitch %f", *yaw, *pitch);
-int _mmplayer_360_set_field_of_view(MMHandleType hplayer, int horizontal_degrees, int vertical_degrees)
+int
+_mmplayer_360_set_field_of_view(MMHandleType hplayer, int horizontal_degrees, int vertical_degrees)
-int _mmplayer_360_get_field_of_view(MMHandleType hplayer, int *horizontal_degrees, int *vertical_degrees)
+int
+_mmplayer_360_get_field_of_view(MMHandleType hplayer, int *horizontal_degrees, int *vertical_degrees)