Fix wrong display surface setting 54/263554/2 accepted/tizen_6.5_unified accepted/tizen_7.0_unified accepted/tizen_7.0_unified_hotfix tizen_6.5 tizen_7.0 tizen_7.0_hotfix accepted/tizen/6.5/unified/20211028.122947 accepted/tizen/7.0/unified/20221110.060956 accepted/tizen/7.0/unified/hotfix/20221116.105437 accepted/tizen/unified/20210907.015403 submit/tizen/20210906.111833 submit/tizen_6.5/20211028.162401 tizen_6.5.m2_release tizen_7.0_m2_release
authorHyunsoo Park <hance.park@samsung.com>
Mon, 6 Sep 2021 08:19:57 +0000 (17:19 +0900)
committerHyunsoo Park <hance.park@samsung.com>
Mon, 6 Sep 2021 08:48:13 +0000 (17:48 +0900)
Change-Id: Ie4cece105a5cea7c5aab19c13057d53e3fa60a9f
Signed-off-by: Hyunsoo Park <hance.park@samsung.com>
packaging/libmm-wfd.spec
src/mm_wfd_sink_attrs.c

index 544f1b2..a070615 100644 (file)
@@ -1,6 +1,6 @@
 Name:       libmm-wfd
 Summary:    Multimedia Framework Wifi-Display Library
-Version:    0.3.10
+Version:    0.3.11
 Release:    0
 Group:      System/Libraries
 License:    Apache-2.0
index f7c0909..6263835 100644 (file)
@@ -649,30 +649,30 @@ _mmwfd_get_attributes_info(MMHandleType handle,  const char *attribute_name, MMW
 
 static bool _mmwfd_set_display_info(MMHandleType handle, int attr_idx, const MMAttrsValue *value)
 {
-       gint display_type = MM_DISPLAY_TYPE_OVERLAY;
+       gint surface_type = MM_DISPLAY_SURFACE_NULL;
+       gint display_type = MM_DISPLAY_TYPE_NONE;
+
        mm_wfd_sink_t *wfd_sink = MMWFDSINK_CAST(handle);
 
        wfd_sink_debug_fenter();
 
-       /* update display surface */
-       mm_attrs_get_int_by_name(MMWFDSINK_GET_ATTRS(wfd_sink), "display_type", &display_type);
-       wfd_sink_info("check display type attribute: %d", display_type);
+       /* update display surface & type*/
+       mm_attrs_get_int_by_name(MMWFDSINK_GET_ATTRS(wfd_sink), "display_surface_type", &surface_type);
 
-       /* configuring display */
-       switch (display_type) {
-       case MM_DISPLAY_TYPE_EVAS:
+       /* configuring surface type*/
+       switch (surface_type) {
+       case MM_DISPLAY_SURFACE_EVAS:
                /* nothing to do */
                break;
-       case MM_DISPLAY_TYPE_OVERLAY:
-       case MM_DISPLAY_TYPE_OVERLAY_EXT:
-               wfd_sink_info("DISPLAY TYPE : %d", display_type);
+       case MM_DISPLAY_SURFACE_OVERLAY:
+               mm_attrs_get_int_by_name(MMWFDSINK_GET_ATTRS(wfd_sink), "display_type", &display_type);
                if (MM_ERROR_NONE != _mm_wfd_sink_set_display_overlay(wfd_sink, value->value.p_val, display_type)) {
                        wfd_sink_error("Setting overlay display is failed.");
                        return false;
                }
                break;
        default:
-               wfd_sink_error("Not Supported Surface. display_type: [%d]", display_type);
+               wfd_sink_error("Not Supported surface [%d]", surface_type);
                return false;
        }