[Bug 701632] gstvalue: Add _append_and_take_value() public variants

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Wed Jun 5 04:05:12 PDT 2013


https://bugzilla.gnome.org/show_bug.cgi?id=701632
  GStreamer | gstreamer (core) | unspecified

Edward Hervey <bilboed> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED
   Target Milestone|HEAD                        |1.1.1

--- Comment #3 from Edward Hervey <bilboed at gmail.com> 2013-06-05 11:05:09 UTC ---
commit 2e1db58e112ef7833a1e8ca34bde7d5740dd481d
Author: Edward Hervey <edward at collabora.com>
Date:   Wed Jun 5 11:02:50 2013 +0200

    gstvalue: Add _append_and_take_value() public variants

    API: gst_value_array_append_and_take_value
    API: gst_value_list_append_and_take_value

    We were already using this internally, this makes it public for code
    which frequently appends values which are expensive to copy (like
    structures, arrays, caps, ...).

    Avoids copies of the values for users. The passed GValue will also
    be 0-memset'ed for re-use.

    New users can replace this kind of code:
    gst_value_*_append_value(mycontainer, &myvalue);
    g_value_unset(&myvalue);

    by:

    gst_value_*_append_and_take_value(mycontainer, &myvalue);

    https://bugzilla.gnome.org/show_bug.cgi?id=701632

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