After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 730703 - gl: Freshly allocated memory is twice the expected size
gl: Freshly allocated memory is twice the expected size
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins-bad
git master
Other Linux
: Normal blocker
: 1.3.3
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2014-05-24 23:26 UTC by Nicolas Dufresne (ndufresne)
Modified: 2014-05-25 04:23 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Nicolas Dufresne (ndufresne) 2014-05-24 23:26:18 UTC
Freshly allocated memory are twice the expected size. If that is exact, it's a large waste of resources, but also the containing buffer will report a larger size then expected, which will cause the buffers to always get freed instead of being pooled back.
Comment 1 Nicolas Dufresne (ndufresne) 2014-05-24 23:26:51 UTC
Tested with: gst-launch-1.0 v4l2src io-mode=userptr ! glimagesink
Comment 2 Matthew Waters (ystreet00) 2014-05-25 01:47:01 UTC
commit dbffcffaee399b450bc82e32bb445bb035cc1971
Author: Matthew Waters <ystreet00@gmail.com>
Date:   Sun May 25 11:44:57 2014 +1000

    gl/memory: allocate the correct memory size
    
    and avoid wasting resources we will never need
    
    https://bugzilla.gnome.org/show_bug.cgi?id=730703
Comment 3 Nicolas Dufresne (ndufresne) 2014-05-25 04:23:31 UTC
Thanks a lot, that was fast !