Add pipeline type attribute 18/48518/1
authorHyongtaek Lim <hyongtaek.lim@samsung.com>
Tue, 22 Sep 2015 10:34:45 +0000 (19:34 +0900)
committerHyongtaek Lim <hyongtaek.lim@samsung.com>
Tue, 22 Sep 2015 10:35:07 +0000 (19:35 +0900)
Signed-off-by: Hyongtaek Lim <hyongtaek.lim@samsung.com>
Change-Id: I7588062146c6123acd0696ad95baec982de228b9

src/player_priv.c

index ef66767..089e8d5 100644 (file)
@@ -72,6 +72,7 @@ int player_set_display_wl_for_mused(player_h player, player_display_type_e type,
        void *set_handle = NULL;
        MMDisplaySurfaceType mmType = __player_mused_convet_display_type(type);
        MMDisplaySurfaceType mmClientType = MM_DISPLAY_SURFACE_NULL;
+       MMPlayerPipelineType mmPipelineType = MM_PLAYER_PIPELINE_SERVER;
 
        int ret;
        if (!__player_state_validate(handle, PLAYER_STATE_IDLE))
@@ -131,8 +132,9 @@ int player_set_display_wl_for_mused(player_h player, player_display_type_e type,
                ret = mm_player_set_attribute(handle->mm_handle, NULL,
                        "display_surface_type", mmType,
                        "display_surface_client_type", mmClientType,
-                       "display_overlay", set_handle,
-                       sizeof(void *), (char*)NULL);
+                       "display_overlay", set_handle, sizeof(void *),
+                       "pipeline_type", mmPipelineType,
+                       NULL);
 
                if (ret != MM_ERROR_NONE)
                {
@@ -261,8 +263,8 @@ int player_set_display_for_mused(player_h player, player_display_type_e type, un
        {
                ret = mm_player_set_attribute(handle->mm_handle, NULL,
                        "display_surface_type", mmType,
-                       "display_overlay", set_handle,
-                       sizeof(xhandle), (char*)NULL);
+                       "display_overlay", set_handle, sizeof(xhandle),
+                       NULL);
 
                if (ret != MM_ERROR_NONE)
                {