gstreamermm C++ vs C calls
Sebastian Dröge
sebastian at centricular.com
Tue Sep 12 14:13:23 UTC 2017
On Tue, 2017-09-12 at 14:47 +0100, Russel Winder wrote:
> I have the C code:
>
> g_object_set(G_OBJECT(play_bin->gobj()), "video-sink", video_element,
> nullptr);
>
> which does the right thing gtkmm wise in that the video widget associated with
> the video_element is embedded in the right GTK container. However if instead I
> use the C++:
>
> play_bin->set_property("video-sink", video_element);
>
> a new video window is created in addition to the one that should contain it.
>
> I suspect I am missing something very simple.
Best would be if you could provide a compileable/runnable testcase for
this so we can take a look.
From the two lines of code it seems like it should be equivalent.
--
Sebastian Dröge, Centricular Ltd · https://www.centricular.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 963 bytes
Desc: This is a digitally signed message part
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20170912/bed88c9c/attachment-0001.sig>
More information about the gstreamer-devel
mailing list