GNOME Bugzilla – Bug 770877
vaapisink overlay: error during create overlay
Last modified: 2016-10-04 11:32:10 UTC
I'd like to report bug during create overlay vaapisink. There are description and solution of my report: http://gstreamer-devel.966125.n4.nabble.com/vaapisink-overlay-td4678988.html I have to make for example 200ms delay and then use gst_video_overlay_set_window_handle().
You can refer to the sample on https://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-base-libs/html/gst-plugins-base-libs-gstvideooverlay.html In msg callback, you can set your xwindow handle. I confirmed that the sample is working on vaapisink based on your sample code.
Hi, Thanks for reporting this issue. I have re-checked it. As we talked in the gstreamer mailing list, the application should wait for two events: the widget realize and the "prepare window handle" in the pipeline's bus. Hyunjun pointed to a snippet with a way to wait for these two events. There are others ways, like the one used in gst-player library in gst-plugins-bad. Using the pre-release of gstreamer 1.10 and 1.8, your code doesn't work as is anymore, there's an X related error: The error was 'BadDrawable (invalid Pixmap or Window parameter)'. If you wait for the bus message, the application works fine. Thus, I'm closing this bug as NOTABUG.