gstreamermm C++ vs C calls

Russel Winder russel at winder.org.uk
Wed Sep 13 09:24:18 UTC 2017


On Tue, 2017-09-12 at 15:00 -0400, Nicolas Dufresne wrote:
[…]
> 
> Ignore glsinkbin, it's just a wrapper. gtkglsink, gtksink, qmlglsink
> are widget sink. They don't support GstVideoOverlay. Use glimagesink,
> xvimagesink if you don't want to use a separate window for overlaying
> your video. The widget based sink are design to be composed within your
> widget tree. Instead of using the GstVideoOverlay interface, you get
> the "widget" property on them, and add the widget to you UI the way it
> works in your widget library.

For some reason my code, based on GstPlayer bits by Sebastian, wraps a
gtkglsink in a glsinkbin or uses a gtksink directly. I no longer use the
overlay stuff since it is X specific and doesn't work on Wayland. I just put
the sink element as a Gtk::Widget as a child of a container widget in the UI.

cf. https://github.com/Me-TV/Me-TV/blob/master/src/gstreamer_engine.cpp and ht
tps://github.com/Me-TV/Me-TV/blob/master/src/frontend_window.cpp

This all seems to work as long as I do all the gtkglsink, glsinkbin, and
gtksink stuff in C. As soon as I use any C++/gstreamermm associated with
preparing the AV sink/widget then it start a new window rather than the
playing in the Gtk::Widget it is supposed to.

I have started trying to create a strip down example of the problem.

-- 
Russel.
=============================================================================
Dr Russel Winder      t: +44 20 7585 2200   voip: sip:russel.winder at ekiga.net
41 Buckmaster Road    m: +44 7770 465 077   xmpp: russel at winder.org.uk
London SW11 1EN, UK   w: www.russel.org.uk  skype: russel_winder
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: This is a digitally signed message part
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20170913/e594aead/attachment-0001.sig>


More information about the gstreamer-devel mailing list