gBroutin / gstreamer-java

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

call Gst.init() after Gst.deinit() does not properly initialise gstreamer-java #69

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. call Gst.init("VideoPlayer", new String[] {});
2. call Gst.deinit("VideoPlayer", new String[] {});
3. call Gst.init("VideoPlayer", new String[] {});
4. call new PlayBin("VideoPlayer");

What is the expected output? What do you see instead?
I expect the PlayBin object to be created correctly.  Instead This error is 
thrown:

java.lang.IllegalArgumentException: No such Gstreamer factory: playbin
    at org.gstreamer.ElementFactory.makeRawElement(ElementFactory.java:174)
    at org.gstreamer.Element.makeRawElement(Element.java:93)
    at org.gstreamer.elements.PlayBin.<init>(PlayBin.java:248)
    ... 14 more

Have you tried to verify this is a gstreamer-java specific issue, and not a
problem with the gstreamer framework itself?
yes.

What version of the product are you using? On what operating system?
Linux/Ubuntu Lucid.

Please provide any additional information below.

I would have expect Gst.init() and Gst.deinit() to be a pair... and there is 
nothing in the javadoc to say that after Gst.deinit() is called, the JVM must 
be recycled before gstreamer-java will work again.

Original issue reported on code.google.com by aeferad...@googlemail.com on 15 Jan 2011 at 12:03

GoogleCodeExporter commented 8 years ago
I don't know the reason for this one. It seems that after deinitialization, the 
registry is not properly repopulated and this is why the elements cannot be 
created.

I tried unloading the plugins prior to deinit() and then explicitly scanning 
the registry, but without success.

Original comment by andres.c...@gmail.com on 1 Mar 2011 at 12:26

GoogleCodeExporter commented 8 years ago
Issue 95 has been merged into this issue.

Original comment by lfar...@lfarkas.org on 13 Jan 2012 at 10:01

GoogleCodeExporter commented 8 years ago
It is not a problem of gstreamer-java. If you call the native function 
gst_deinit you never can use Gstreamer library like Wim Taymans says in this 
post:

http://gstreamer-devel.966125.n4.nabble.com/Is-this-expected-td968583.html

So if you want to use a gstreamer application many times you cannot call 
Gst.deinit() at all.
Best Regards,

Carlo Parata

Original comment by carlo.pa...@gmail.com on 26 Oct 2012 at 2:58

GoogleCodeExporter commented 8 years ago
thanks.
upstream problem.

Original comment by lfar...@lfarkas.org on 26 Oct 2012 at 3:33