gstreamermm Gst::ElementInterfaced and Gst::XOverlay cannot be resolved

Tim Müller tim at centricular.com
Mon Jun 20 08:51:25 UTC 2016


On Sat, 2016-06-18 at 15:34 -0500, pjsanfil wrote:

Hi,

> Using gstreamermm-1.0 I am trying to set a DrawingArea to place video
> frames in. Using the following code to try and set the XID for where
> to place the frames:
>         Glib::RefPtr<Gst::Element> element =
> Glib::RefPtr<Gst::Element>::cast_dynamic(msg->get_source());
>         Glib::RefPtr< Gst::ElementInterfaced<Gst::XOverlay> >
> xoverlay =
>         Gst::Interface::cast <Gst::XOverlay>(element);
> I get compiler errors saying ElementInterfaced is not a member of
> Gst   and XOverlay is not a member of Gst.
> When I search through my header files for XOverlay I do not see it
> defined anywhere. The instructions for the Gst::VideoOverlay class
> say to set the XID this way.
> Thanks,

It sounds like the gstreamer-mm documentation needs to be updated then.
You probably need to use ::VideoOverlay instead of ::XOverlay.

Cheers
 -Tim
-- 

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


More information about the gstreamer-devel mailing list