<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr">Hi Expert:<div>  I tried to create a wl_surface/wl_display, then set them to waylandsink, but it fails to playback. if I don't set wl_surface/wl_display to waylandsink, playback works well (it uses the wl_surface created by waylandsink itself).</div><div>  so, I seek simple sample code to start with, is there any sample code to set external wl_surface to waylandsink?</div><div> </div><div>  I set wl_surface to waylandsink by gst_video_overlay_set_window_handle().</div><div>and wl_display is set to waylandsink by gst_element_set_context() as following:</div><div><a href="http://gstreamer-devel.966125.n4.nabble.com/Application-did-not-provide-a-wayland-display-handle-td4683750.html">http://gstreamer-devel.966125.n4.nabble.com/Application-did-not-provide-a-wayland-display-handle-td4683750.html</a><br></div><div><div>#define GST_WAYLAND_DISPLAY_HANDLE_CONTEXT_TYPE "GstWaylandDisplayHandleContextType" </div><div>GstContext * </div><div>gst_wayland_display_handle_context_new (struct wl_display * display) </div><div>{ </div><div>  GstContext *context = </div><div>      gst_context_new (GST_WAYLAND_DISPLAY_HANDLE_CONTEXT_TYPE, TRUE); </div><div>  gst_structure_set (gst_context_writable_structure (context), </div><div>      "handle", G_TYPE_POINTER, display, NULL); </div><div>  return context; </div><div>} </div></div><div><br></div><div>thanks.</div><div><br></div></div></div></div></div></div>