Hi,<div><br></div><div>I'm writing vaapi support for Qt Mobility (qtmultimediakit) using gstreamer-vaapi (<a href="http://gitorious.org/vaapi/gstreamer-vaapi">http://gitorious.org/vaapi/gstreamer-vaapi</a>). I've succeeded at playing a video decoded using vaapi on an OpenGl texture in my Qt OpenGl scene. I'm having troubles though with playing multiple videos (black frames, random data in some parts of the video... ).</div>

<div><br></div><div>Each video is being decoded using vaapi in its own thread. The vaapi surfaces are transferred to an OpenGl texture using gst_vaapi_texture_put_surface (= vaCopySurfaceGlx wrapper) in the main thread. The OpenGl context used in the main thread of Qt is shared with vaapi. Is this the right way to do this? Or could I call vaCopySurfaceGlx in the respective decoding threads?</div>

<div><pre style="margin-top:0px;margin-bottom:0px"></pre><div><br></div>Best regards,<br><div><br></div><div>Christophe</div><br>
<br>
<br>
</div>