[gstreamer-bugs] [Bug 630442] configure: Default to not use X Shm on OS X.

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Thu Sep 23 17:31:32 PDT 2010


https://bugzilla.gnome.org/show_bug.cgi?id=630442
  GStreamer | gst-plugins-base | unspecified

--- Comment #4 from David Schleef <ds at schleef.org> 2010-09-24 00:31:29 UTC ---
Ok, that's approximately what I thought.  This is the wrong way to fix it.

The bug here is that x[v]imagesink doesn't fall back to normal X[v]Images if it
fails to allocate one using X[v]ShmCreateImage().  This could happen anywhere,
but is especially likely on OS/X since the default shmem limit is low.

It seems reasonable to set xcontext->use_xshm to false once an allocation
failure has happened, then it won't keep retrying.  Bonus points for adding the
size of the allocation that fails, in which case if any new allocation is
smaller (because the window was resized) it will reattempt an XShm allocation.

One detail -- if some images are allocated using XShm, the GstXvImageBuffer
structure now needs a flag to indicate if the memory was allocated using XShm
or not.

-- 
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