On 05/18/2016 12:11 PM, Neil C Smith wrote:
> Hi,
>
> On 18 May 2016 at 10:54, Djos Kast <
djos...@gmail.com> wrote:
>> I've found the problem , there is a little error in the java binding :
>>
>> In the class org.freedesktop.gstreamer.elements.AppSink
>> Int the method connect(final NEW_SAMPLE listener)
>> the GstCallback have a callback method that returns void,
>> And I've look the C++ code, this method must returns a FlowReturn
>> I've made a fast correction :
>>
>> connect(NEW_SAMPLE.class, listener, new GstCallback() {
>> @SuppressWarnings("unused")
>> public FlowReturn callback(AppSink elem) {
>> listener.newBuffer(elem);
>> return FlowReturn.OK;
>> }
>> });
>>
>> And now it works great !
>
> hmmm .. looks like you might be right. But also looks like that issue
> has been in the GStreamer-Java bindings throughout 0.10 too. And as
> FlowReturn.OK is just zero, I think that's what JNA would have
> returned to GStreamer anyway. So, I'm none the wiser why this is
> fixing your issue and no-one else has had that problem, but I'll look
> at integrating it as a fix (unless you want to make a pull request?)