anubhav94 / gstreamer-java

Automatically exported from code.google.com/p/gstreamer-java
0 stars 0 forks source link

Unable to create CustomSink #43

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I've tried creating a sink by extending CustomSink, but the constructor
always throws an exception:

java.lang.IllegalArgumentException: Invalid native pointer
    at org.gstreamer.lowlevel.NativeObject.initializer(NativeObject.java:70)
    at org.gstreamer.GstObject.initializer(GstObject.java:65)
    at org.gstreamer.elements.CustomSink.<init>(CustomSink.java:75)

GLib-GObject-WARNING **: specified instance size for type `SubtitleSink' is
smaller than the parent type's `GstBaseSink' instance size
GLib-GObject-CRITICAL **: g_object_new: assertion `G_TYPE_IS_OBJECT
(object_type)' failed

The size of GstBaseSinkStruct is not correct, the attached patch seems to
fix this.

I'm using 32 bit Windows XP and gstreamer 0.10.27.

Original issue reported on code.google.com by raimo.ja...@gmail.com on 2 May 2010 at 6:56

Attachments:

GoogleCodeExporter commented 9 years ago
This patch seems go to me, it addresses the FIXME comments. A similar correction
should be made in GstBaseSrcStruct.

Original comment by andres.c...@gmail.com on 5 May 2010 at 10:42

GoogleCodeExporter commented 9 years ago
I looked at BaseAPI.java and the patch makes sense. By making the above comment,
Andres, you prove yourself much more qualified to take ownership :). If you 
have not
already made the changes, you can set me as ticket owner.

Original comment by tsha...@gmail.com on 5 May 2010 at 11:42

GoogleCodeExporter commented 9 years ago
anybody apply it? or should i do that?

Original comment by vitorl...@gmail.com on 12 May 2010 at 11:21

GoogleCodeExporter commented 9 years ago

Original comment by lfar...@gmail.com on 15 May 2010 at 12:44

GoogleCodeExporter commented 9 years ago
anyone like to do the same with other structures?

Original comment by lfar...@gmail.com on 15 May 2010 at 12:47