[gstreamer-bugs] [Bug 564620] New: [0.11][API] Make gst.Pad.query_* raise exceptions

GStreamer (bugzilla.gnome.org) bugzilla-daemon at bugzilla.gnome.org
Mon Dec 15 07:32:11 PST 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=564620

  GStreamer | gst-python | Ver: HEAD CVS
           Summary: [0.11][API] Make gst.Pad.query_* raise exceptions
           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: alessandro.d at gmail.com
         QAContact: gstreamer-bugs at lists.sourceforge.net
     GNOME version: Unspecified
   GNOME milestone: Unspecified


Currently gst.Pad.query_* methods return None when the query fails.
This is particularly annoying as when a query succeeds the result is a two
element tuple, so you it's natural to unpack it like

a, b = pad.query_*(...)

except that when there's a failure, python throws an exception at you as None
can't be unpacked in two items.
The methods should raise exceptions or at least return (None, None).


-- 
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=564620.




More information about the gstreamer-bugs mailing list