[gstreamer-bugs] [Bug 549450] New: caps.append_structure() gives warnings if structure is non-writable

GStreamer (bugzilla.gnome.org) bugzilla-daemon at bugzilla.gnome.org
Tue Aug 26 08:28:33 PDT 2008


If you have any questions why you received this email, please see the text at
the end of this email. Replies to this email are NOT read, please see the text
at the end of this email. You can add comments to this bug at:
  http://bugzilla.gnome.org/show_bug.cgi?id=549450

  GStreamer | gst-python | Ver: HEAD CVS
           Summary: caps.append_structure() gives warnings if structure is
                    non-writable
           Product: GStreamer
           Version: HEAD CVS
          Platform: Other
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: Normal
         Component: gst-python
        AssignedTo: gstreamer-bugs at lists.sourceforge.net
        ReportedBy: t.i.m at zen.co.uk
         QAContact: gstreamer-bugs at lists.sourceforge.net
     GNOME version: Unspecified
   GNOME milestone: Unspecified


#!/usr/bin/python
import gobject
gobject.threads_init()
import gst

c = gst.Caps('foo/bar')
for s in c:
  c2 = gst.Caps()
  c2.append_structure(s)

gives a:

(foo.py:31165): GStreamer-CRITICAL **: gst_caps_append_structure: assertion
`structure->parent_refcount == NULL' failed

warning.

You could argue that it's the caller's responsibility to make sure the
structure is writable and all, just like in C, but I think this is python and
it should Just Work, no?


-- 
See http://bugzilla.gnome.org/page.cgi?id=email.html for more info about why you received
this email, why you can't respond via email, how to stop receiving
emails (or reduce the number you receive), and how to contact someone
if you are having problems with the system.

You can add comments to this bug at http://bugzilla.gnome.org/show_bug.cgi?id=549450.




More information about the Gstreamer-bugs mailing list