subclass gstbin to overwrite handle_message

Thibault Saunier tsaunier at
Wed Nov 29 20:23:19 UTC 2017


First looks like you are not instanciate a `my_bin` but a regular bin
(`my_bin = gst_bin_new ("my_bin");`).
Then you will need to set `MyBinClass->handle_message` in the class
init function.



On Wed, Nov 29, 2017 at 4:58 PM, Eloi Bail <eloi.bail at> wrote:
> Hi guys,
> I am trying to subclass Gstbin to overwrite handle_message virtual method.
> I tried to make it simple. I defined MyBin which is a subclass of GstBin and
> overwrites handle_message. (see mybin.h in attachment).
> I used basic-tutorial-2.c where I added the redefinition of handle_message
> method, and just put a g_print to see if my redefined method is called (see
> basic-tutorial-2.c)
> I never see my redefined method called and would like to have help to
> resolve this issue.
> Notice that I am using glib 2.54.2 which uses G_DECLARE_DERIVABLE_TYPE.
> Thanks,
> Eloi
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at

More information about the gstreamer-devel mailing list