Vaapidecode Format and OpenGL
Zelnes
mehdi.ghesh at hotmail.fr
Tue Jul 4 08:23:42 UTC 2017
Hyunjun Ko wrote
>
> Zelnes wrote
>> Hi,
>>
>> Thanks for your examples, I had already seen them but this time I tried
>> myself step by step.
>> I have a working window, in which I displayed a red texture created with
>> OpenGL.
>>
>> I built my pipeline step by step, to be sure that it works, and I think
>> it is correct.
>> To make it work, I create an empty new pipeline, to which I add my real
>> pipeline, held in a 'GstElement*
/
>> content
/
>> ' (otherwise it didn't work).
>> Now, I encounter two issues :
>> - If I unref
/
>> content
/
>> , I got "Trying to dispose object 'pipeline0', but it still has a parent
>> 'gstreamer_pipeline'" and the program runs but does nothing
>> - If I do not unref
/
>> content
/
>> , the program segfaults.
> You should not unref it there absolutely. It's your pipeline that you want
> to get working.
> Zelnes wrote
>> What I've seen is that in both cases, my sync_bus_callback() function is
>> called for STATE_CHANGED messages, but it asks for context only in the
>> second situation (3 times : gst.vaapi.Display, then gst.gl.GLDisplay and
>> then gst.gl.app_context).
>> Is that normal that it calls three times for the context ?
>>
>> In the first case, it runs but nothing happens. My new_sample_callback()
>> is never called.
> Because you unref it and it's working as it says "the program runs but
> does nothing"
That's also what I thought, that I shouldn't unref it.
Hyunjun Ko wrote
>
> Zelnes wrote
>> You can find the code source here : https://codeshare.io/2WeLNE
> Actually I tried your code with a bit modification to make it built.
> And I see it's working fine here(each new sample msg is printed). I tried
> on the master.
Could you please tell me what modifications did you do to make it work ? I
still can't get it to work...
If you modified the code here https://codeshare.io/2WeLNE, I did not see any
change (I did a 'diff myfile.cpp codeshare.cpp' but saw nothing important).
It's not because of my Intel hardware ? I saw that there were issues on this
kind of hardware
--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/Vaapidecode-Format-and-OpenGL-tp4683302p4683671.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.
More information about the gstreamer-devel
mailing list