Plugin source boilerplate not registering correctly

Frederic Turmel fturmel at netflix.com
Fri Jan 10 17:19:21 UTC 2020


Thanks for the pointer. I switched to meson since it seems more appealing
to me.
Once i added the dependency I get a different error. It is not seeing the
element.

Here's the skeleton with meson https://github.com/FredT2020/gstadv

(gst-inspect-1.0:12378): GLib-GObject-WARNING **: 09:10:56.321: specified
class size for type 'GstAdvAudioSrc' is smaller than the parent type's
'GstAudioSrc' class size

(gst-inspect-1.0:12378): GLib-CRITICAL **: 09:10:56.322: g_once_init_leave:
assertion 'result != 0' failed

(gst-inspect-1.0:12378): GStreamer-CRITICAL **: 09:10:56.322:
gst_element_register: assertion 'g_type_is_a (type, GST_TYPE_ELEMENT)'
failed
Plugin Details:
  Name                     adv
  Description              FIXME Template plugin
  Filename                 /usr/local/lib/gstreamer-1.0/libgstadv.so
  Version                  0.0.FIXME
  License                  LGPL
  Source module            gst-project-plugin
  Binary package           GStreamer
  Origin URL               http://gstreamer.net/

  0 features:




On Fri, Jan 10, 2020 at 1:56 AM Tim Müller <tim at centricular.com> wrote:

> On Thu, 2020-01-09 at 17:33 -0800, Frederic Turmel wrote:
>
> Hi,
>
> > Failed to load plugin '/usr/local/lib/gstreamer-1.0/libgstadv.so':
> > /usr/local/lib/gstreamer-1.0/libgstadv.so: undefined symbol:
> > gst_audio_src_get_type
> >
> > At this point I'm just trying to load an empty audio source.
> >
> > It is likely something stupid... What I'm missing?
> > I have placed the code here for convenience if somebody can highlight
> > what's wrong. https://github.com/FredT2020/gsPlay
>
> This is probably not a problem with your code, but with your build
> setup.
>
> You need to link against libgstaudio-1.0, so add gstreamer-audio-1.0 to
> your pkg-config / dependencies list.
>
> (You didn't post your build files, so can only give generic guidance
> here, details will depend on the build system used of course).
>
> 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/20200110/25904575/attachment.htm>


More information about the gstreamer-devel mailing list