playing video with waylandsink is not rendering under gtk window

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

playing video with waylandsink is not rendering under gtk window

893 Views
dilna
Contributor II

hi,

we are using imx8qm board to display our test pattern inside a window. Test pattern is generated using gstreamer pipeline with waylandsink. The window should be able to minimize,maximize,close and drag. we are attaching our code bellow. We have made a GTK window which we are able to minimize, maximize and drag. But the test pattern does not get rendered inside the GTK window. Instead, it will run separately  leaving the GTK window blank in imx8qm wayland display

0 Kudos
Reply
3 Replies

863 Views
dilna
Contributor II

Thank you. Now our issue is resolved. The video is rendered inside the GTK window.

0 Kudos
Reply

872 Views
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Hello Dilna,

I feel the waylandsink is not fully ready yet when you call gst_video_overlay_set_window_handler() to associate your gtk window with rendering surface. You may need to use gst_bus_set_sync_handler() have sync handler to make sure it is ready.

you can refer the code here:

https://github.com/GStreamer/gst-plugins-bad/blob/master/tests/examples/waylandsink/main.c

 

Regards

0 Kudos
Reply

862 Views
dilna
Contributor II

Thank you. Now the issue is resolved. The video is get rendered inside the GTK window.

0 Kudos
Reply