GNOME Bugzilla – Bug 701632
gstvalue: Add _append_and_take_value() public variants
Last modified: 2013-06-05 11:05:09 UTC
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);
Created attachment 246052 [details] [review] gstvalue: Add _append_and_take_value() public variants
Comment on attachment 246052 [details] [review] gstvalue: Add _append_and_take_value() public variants Since markers missing from the docs
commit 2e1db58e112ef7833a1e8ca34bde7d5740dd481d Author: Edward Hervey <edward@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