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;
}