[Bug 742006] gst_discoverer_info_get_missing_elements_installer_details() has bad documentation of ownership of return value

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Sat Dec 27 05:05:28 PST 2014


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

Tim-Philipp Müller <t.i.m> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
                 CC|                            |t.i.m at zen.co.uk
         Resolution|                            |FIXED
   Target Milestone|HEAD                        |1.5.1

--- Comment #2 from Tim-Philipp Müller <t.i.m at zen.co.uk> 2014-12-27 13:05:24 UTC ---
Thanks for the patch, fixed in master (will be picked into 1.4 later):

commit 651fa00c12b8b3a1bf1c9a53396ed0cf8863c096
Author: Sam Thursfield <sam at afuera.me.uk>
Date:   Fri Dec 26 20:48:55 2014 +0000

    Fix documentation that incorrectly says a return value should be freed

    The gst_discoverer_info_get_missing_elements_installer_details()
    documentation and annotation says that the return value should be freed
    with g_strfreev(), but actually it's owned by the GstDiscovereInfo
    object and should definitely not get freed by the caller as well.

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


I was pondering whether to change it to return a copy instead, but then noticed
that all the other bits (taglist, toc, etc.) are also const returns of
discoverer-owned structs. I'm a bit concerned about changes being made in
discoverer while/after someone is still calling this, but haven't checked the
code if we can always assume that all streaming has stopped at the time
discoverer notifies results.

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