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

pjsanfil pjsanfil at gmail.com
Mon Jun 20 20:37:46 UTC 2016


I tried using VideoOverlay and then using   set_window_handle(XID);
and that compiled but did not work. Once I ran the program the default
behavior of creating a new window to put the video stream in occurred. The
documentation saying to use XOverlay is in the VideoOverlay class
documentation.

Thanks,
Paul


On Mon, Jun 20, 2016 at 3:51 AM, Tim Müller <tim at centricular.com> wrote:

> 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
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20160620/824c949c/attachment.html>


More information about the gstreamer-devel mailing list