Run OpenGl plugin

Potoman lepotoman at msn.com
Wed Jul 6 09:01:42 UTC 2016


Hey !

I try to build my own plugin based on glvideomixer plugin.

I try to compile the gstglvideomix with the modification of the plugin name.

I change glvideomixer to gltestvideomixer.

I successfully compile it under windows/msvc but I had to add in my project
the c file :
- gstglbasemixer.c
- gstglmixer.c
- gstglmixerbin.c
If I don't put this symbol, the compilation fail cause msvc doesn't found
the symbol of this c file.

I'm asking you if it's a good manner ?

Cause I have this problem, when I run my plugin with a basic command line :

 gst-launch-1.0  gltestvideomixer name=m ! glimagesink \ videotestsrc !
video/x-raw, format=YUY2 ! m. \ videotestsrc pattern=12 ! video/x-raw,
format=I420, framerate=5/1, width=100, height=200 ! queue ! m. \
videotestsrc ! video/x-raw, format=RGB, framerate=15/1, width=1500,
height=1500 ! queue ! m. \ videotestsrc ! queue ! m.  \ videotestsrc !
glfiltercube ! queue ! m. \ videotestsrc ! queue ! m.

I have this error :

(gst-inspect-1.0:3640): GLib-GObject-WARNING **: cannot register existing
type 'GstGLBaseMixer'

(gst-inspect-1.0:3640): GLib-CRITICAL **: g_once_init_leave: assertion
'result != 0' failed

(gst-inspect-1.0:3640): GLib-GObject-CRITICAL **: g_type_register_static:
assertion 'parent_type > 0' failed

(gst-inspect-1.0:3640): GLib-CRITICAL **: g_once_init_leave: assertion
'result != 0' failed

(gst-inspect-1.0:3640): GLib-GObject-CRITICAL **: g_type_register_static:
assertion 'parent_type > 0' failed

(gst-inspect-1.0:3640): GLib-CRITICAL **: g_once_init_leave: assertion
'result != 0' failed

(gst-inspect-1.0:3640): GStreamer-CRITICAL **: gst_element_register:
assertion 'g_type_is_a (type, GST_TYPE_ELEMENT)' failed



It's look like there are a conflict between glvideomixer and my plugin. I
think I declare both GstGLBaseMixer cause I compile it in my project.

Is it because the dll libgstopengl.dll already contain the symbol of
gstglbasemixer.c, gstglmixer.c and gstglmixerbin.c file ?

How  can I fix this conflict ?

Thaks !




--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/Run-OpenGl-plugin-tp4678435.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.


More information about the gstreamer-devel mailing list