remove attr client_type 58/81558/1
authorNAMJEONGYOON <just.nam@samsung.com>
Wed, 27 Jul 2016 05:09:58 +0000 (14:09 +0900)
committerNAMJEONGYOON <just.nam@samsung.com>
Wed, 27 Jul 2016 05:09:58 +0000 (14:09 +0900)
Change-Id: Ic16ad6e9f548d004e14b771a93d472914933ccb8

src/mm_player_attrs.c
src/mm_player_priv.c

index 8e4f8c7..bbddf80 100644 (file)
@@ -1089,15 +1089,6 @@ _mmplayer_construct_attribute(MMHandleType handle)
                        0
                },
                {
-                       "display_surface_client_type",
-                       MM_ATTRS_TYPE_INT,
-                       MM_ATTRS_FLAG_RW,
-                       (void *) MM_DISPLAY_SURFACE_NULL,
-                       MM_ATTRS_VALID_TYPE_INT_RANGE,
-                       MM_DISPLAY_SURFACE_OVERLAY,
-                       MM_DISPLAY_SURFACE_NUM - 1
-               },
-               {
                        "drc_mode",
                        MM_ATTRS_TYPE_INT,
                        MM_ATTRS_FLAG_RW,
index d37b9e5..8816f44 100644 (file)
@@ -3680,10 +3680,8 @@ __mmplayer_gst_decode_callback(GstElement *elem, GstPad *pad, gpointer data) //
                        /* NOTE : not make videobin because application dose not want to play it even though file has video stream. */
                        /* get video surface type */
                        int surface_type = 0;
-                       int surface_client_type = 0;
                        mm_attrs_get_int_by_name(player->attrs, "display_surface_type", &surface_type);
-                       mm_attrs_get_int_by_name(player->attrs, "display_surface_client_type", &surface_client_type);
-                       LOGD("display_surface_type : server(%d), client(%d)\n", surface_type, surface_client_type);
+                       LOGD("display_surface_type (%d)\n", surface_type);
 
                        if (surface_type == MM_DISPLAY_SURFACE_NULL || surface_type == MM_DISPLAY_SURFACE_REMOTE)
                        {
@@ -3691,7 +3689,7 @@ __mmplayer_gst_decode_callback(GstElement *elem, GstPad *pad, gpointer data) //
                                goto ERROR;
                        }
 
-                       if (surface_client_type == MM_DISPLAY_SURFACE_OVERLAY)
+                       if (surface_type == MM_DISPLAY_SURFACE_OVERLAY)
                        {
                                if (_mmplayer_resource_manager_get_state(&player->resource_manager, &resource_state) == MM_ERROR_NONE)
                                {