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 621527 - gstcaps: New gst_caps_steal_structure() method
gstcaps: New gst_caps_steal_structure() method
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gstreamer (core)
unspecified
Other All
: Normal enhancement
: 0.10.30
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2010-06-14 10:28 UTC by Edward Hervey
Modified: 2010-06-14 11:18 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
gstcaps: New gst_caps_pop_structure() method (3.15 KB, patch)
2010-06-14 10:28 UTC, Edward Hervey
committed Details | Review

Description Edward Hervey 2010-06-14 10:28:16 UTC
This allows removing structures from caps without them being freed. Helpful when
plugins need to move around structures without having to do an expensive structure
copy.
Comment 1 Edward Hervey 2010-06-14 10:28:22 UTC
Created attachment 163568 [details] [review]
gstcaps: New gst_caps_pop_structure() method
Comment 2 Tim-Philipp Müller 2010-06-14 10:38:42 UTC
How about _steal_structure() instead?

I'd associate 'pop' more with stacks or queues where you 'pop' off the first or last item.
Comment 3 Edward Hervey 2010-06-14 11:18:15 UTC
commit 32adac81ee129bf90f3d9ee91b71ccc8c7ec649b
Author: Edward Hervey <bilboed@bilboed.com>
Date:   Mon Jun 14 11:39:40 2010 +0200

    gstcaps: New gst_caps_steal_structure() method
    
    This allows removing structures from caps without them being freed. Helpful when
    plugins need to move around structures without having to do an expensive structure
    copy.
    
    API:gst_caps_steal_structure
    
    https://bugzilla.gnome.org/show_bug.cgi?id=621527