playing video with waylandsink is not rendering under gtk window

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

playing video with waylandsink is not rendering under gtk window

2,181件の閲覧回数
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 件の賞賛
返信
3 返答(返信)

2,151件の閲覧回数
dilna
Contributor II

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

0 件の賞賛
返信

2,160件の閲覧回数
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 件の賞賛
返信

2,150件の閲覧回数
dilna
Contributor II

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

0 件の賞賛
返信