[Bug 725640] New: context share not stable in Linux + catalyst

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Mon Mar 3 21:44:50 PST 2014


https://bugzilla.gnome.org/show_bug.cgi?id=725640
  GStreamer | gst-plugins-gl | git

           Summary: context share not stable in Linux + catalyst
    Classification: Platform
           Product: GStreamer
           Version: git
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: Normal
         Component: gst-plugins-gl
        AssignedTo: gstreamer-bugs at lists.freedesktop.org
        ReportedBy: comicfans44 at gmail.com
         QAContact: gstreamer-bugs at lists.freedesktop.org
     GNOME version: ---


Created an attachment (id=270869)
 View: https://bugzilla.gnome.org/attachment.cgi?id=270869
 Review: https://bugzilla.gnome.org/review?bug=725640&attachment=270869

a temp hack to let glimagesink create shared context

Hello, I'm using Qt graphicsScene (draw overlay items) and gst-plugins-gl(draw
background) together,
and this is the mail original posted
:http://lists.freedesktop.org/archives/gstreamer-devel/2014-March/046610.html
I found that application random locked when using context share, maybe its a
misused code by me or a driver bug.
I attach a demo to test this. hopes someone can point out the misused code, or
a better solution. if this is a driver bug,
maybe we can makes the glimagesink context completely replaceable, that we can
deliver any opengl callback to user
controlled thread, to avoid thread problem in driver.

this demo works as following:
Qt part:  drawBackground opengl  callback create gstreamer pipeline, 
                receive texture through glimagesink's clientDrawCallback
Gst part:  videotestsrc - > glimagesink   , with
gst_gl_context_x11_create_context hacked,
                to create share context from Qt GL thread.

you need to patch gst-plugins-gl source .  the patch is rebased on 5d4ef5

a better demo may use GstGLFilter->other-context property to create share
context, but I'm facing a problem that texture used by GstGLFilter never freed
(I'll post another demo here) , so I made a hack ,that glimagesink also create
share context.

-- 
Configure bugmail: https://bugzilla.gnome.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the gstreamer-bugs mailing list