Xoverlay interface

sergio_ myxdiablo at yahoo.com
Wed Apr 2 00:44:01 PDT 2014

Hello All,

I am using GStreamer version 0.10.35 and trying to redirect the output from
mfw_v4lsink to a window but I get this error: "GST_IS_X_OVERLAY (overlay)'

GstElement * videosink = gst_element_factory_make("mfw_v4lsink",
This is the function that I call: gst_x_overlay_set_window_handle ( (
videosink), getNativeWindow());

I tried also this code:
gst_x_overlay_set_window_handle ( GST_X_OVERLAY( videosink),
but I get this error:
Std[] Error (: ) (<unknown>:25643): GStreamer-CRITICAL **:
gst_implements_interface_cast: assertion `gst_element_implements_interface
(GST_ELEMENT (from), iface_type)' failed
Std[] Error (: ) ** (<unknown>:25643): CRITICAL **:
gst_x_overlay_set_window_handle: assertion `overlay != NULL' failed

The video is displayed but not linked with the window. Calling function
gst_x_overlay_set_window_handle has no effect.
Could you tell why I can not link the video sink with the window? Is it
because GStreamer 0.10.35 does not support GstVideoOverlay?

Thanks in advance,

View this message in context: http://gstreamer-devel.966125.n4.nabble.com/Xoverlay-interface-tp4666244.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.

More information about the gstreamer-devel mailing list