Vaapidecode Format and OpenGL

Hyunjun Ko zzoon at igalia.com
Tue Jul 4 03:33:57 UTC 2017


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"


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.






--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/Vaapidecode-Format-and-OpenGL-tp4683302p4683664.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.


More information about the gstreamer-devel mailing list