RET_IF_FAIL(array != NULL);
RET_IF_FAIL(array->len == 11);
- /* 11 args 0: notify_type 1:output_id, 2:output_type, 3:output_mode, 4:w, 5:h, 6:w_mm, 7:h_mm, 8:pid, 9:attri, 10:state */
+ /* 11 args 0: notify_type 1:output_id, 2:output_type, 3:output_mode, 4:w, 5:h, 6:w_mm, 7:h_mm, 8:pid, 9:attr, 10:state */
v = &g_array_index(array, GValue, 0);
notify_type = g_value_get_int(v);
v = &g_array_index(array, GValue, 1);
_eom_mutex_unlock();
_eom_output_call_notify_cb(¬ify);
_eom_mutex_lock();
+
+ if (state == EOM_OUTPUT_ATTRIBUTE_STATE_LOST)
+ _eom_set_output_attribute_state(output_info, EOM_OUTPUT_ATTRIBUTE_STATE_NONE);
}
}
break;
ret_array = eom_dbus_client_get_output_info(output_id);
#endif
if (ret_array) {
- /* 0:output_id, 1:output_type, 2:output_mode, 3:w, 4:h, 5:w_mm, 6:h_mm */
+ /* 0:output_id, 1:output_type, 2:output_mode, 3:w, 4:h, 5:w_mm, 6:h_mm, 7:attribute */
output_info = _eom_alloc_output_info(g_value_get_int(&g_array_index(ret_array, GValue, 0)),
g_value_get_int(&g_array_index(ret_array, GValue, 1)));
if (output_info) {
g_value_get_int(&g_array_index(ret_array, GValue, 4)));
_eom_set_output_info_phy_size(output_info, g_value_get_int(&g_array_index(ret_array, GValue, 5)),
g_value_get_int(&g_array_index(ret_array, GValue, 6)));
+ _eom_set_output_attribute(output_info, g_value_get_int(&g_array_index(ret_array, GValue, 7)));
INFO("GetOutputInfo: %s(%d)", TYPE(output_info->type), output_info->id);
}
INFO("SetOutputAttribute: %s", (ret) ? "success" : "failed");
+ if (ret)
+ _eom_set_output_attribute(output_info, attr);
+
_eom_mutex_unlock();
return (ret) ? EOM_ERROR_NONE : EOM_ERROR_MESSAGE_OPERATION_FAILURE;