/* update display surface */
mm_attrs_get_int_by_name(wfd_sink->attrs, "display_surface_type", &surface_type);
- wfd_sink_debug("check display surface type attribute: %d", surface_type);
+ wfd_sink_info("check display surface type attribute: %d", surface_type);
mm_attrs_get_int_by_name(wfd_sink->attrs, "display_visible", &visible);
- wfd_sink_debug("check display visible attribute: %d", visible);
+ wfd_sink_info("check display visible attribute: %d", visible);
+
+ if (FALSE == visible) {
+ wfd_sink_info ("skipped to prepare video sink. display_visible is FALSE.");
+ g_object_set(G_OBJECT(video_sink), "visible", visible, NULL);
+ return MM_ERROR_NONE;
+ }
/* configuring display */
switch (surface_type) {