> Try SwingVideoTest and see whether that works (should display a test pattern
> with some updating areas), to see if it is the rendering part, or the
> decoding part of the pipeline.
SwingVideoTest works ok on my system.
> I use Netbeans 6.0 (RC1) with jdk 1.5 to develop, so thats probably
> easiest, but others have used eclipse with some success. There have been
> problems in the past with some gstreamer-java code that does stuff with
> generics that is valid and compiles fine on sun's jdk, but fails with
> eclipse's compiler.
>
> First steps would be to open up the project in Netbeans and run the unit
> tests - that will confirm your setup is all working.
Thanks for the info.
I have been using Netbeans 5.5, and compiled gstreamer-java with both
jdk 1.5 and 1.6
However, in the two cases I run into the following problem. The
example.Player test
runs fine using my own compiled versions of gstreamer-java, but
everything that seems
to be related to swing (example.SwingVideoTest, example.SwingPlayer,
etc) crashes
at startup with the following error:
(java.exe:4236): GLib-GObject-WARNING **: specified instance size for
type `Vide
oSink' is smaller than the parent type's `GstBaseSink' instance size
(java.exe:4236): GLib-GObject-CRITICAL **: g_object_new: assertion
`G_TYPE_IS_OB
JECT (object_type)' failed
Exception in thread "main" java.lang.NullPointerException
at java.util.concurrent.ConcurrentHashMap.put(Unknown Source)
at org.gstreamer.NativeObject.<init>(NativeObject.java:41)
at org.gstreamer.GObject.<init>(GObject.java:38)
at org.gstreamer.GstObject.<init>(GstObject.java:48)
at org.gstreamer.GstObject.<init>(GstObject.java:30)
at org.gstreamer.Element.<init>(Element.java:39)
at org.gstreamer.BaseSink.<init>(BaseSink.java:34)
at org.gstreamer.CustomSink.<init>(CustomSink.java:59)
at org.gstreamer.swing.GstVideoComponent
$VideoSink.<init>(GstVideoCompon
ent.java:284)
at
org.gstreamer.swing.GstVideoComponent.<init>(GstVideoComponent.java:6
6)
at example.SwingVideoTest.main(SwingVideoTest.java:67)
Perhaps I should recompile the JNI as well?