Xoverlay interface

Tim Müller tim at centricular.com
Wed Apr 2 05:31:37 PDT 2014


On Wed, 2014-04-02 at 00:44 -0700, sergio_ wrote:

Hi,

> 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)'
> failed"
> 
> GstElement * videosink = gst_element_factory_make("mfw_v4lsink",
> "videosink");
> 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),
> getNativeWindow()); 
> 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

Try setting the videosink to GST_STATE_READY before casting it with
GST_X_OVERLAY, that should get rid of the critical warnings (it's a
weird 0.10 thing which we got rid of in 1.x)

Cheers
 -Tim

-- 
Tim Müller, Centricular Ltd - http://www.centricular.com



More information about the gstreamer-devel mailing list