[gstreamer-bugs] [Bug 436620] New: get_uri_type methods should return enum objects

GStreamer (bugzilla.gnome.org) bugzilla-daemon at bugzilla.gnome.org
Mon May 7 08:32:50 PDT 2007


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

  GStreamer | gst-python | Ver: HEAD CVS
           Summary: get_uri_type methods should return enum objects
           Product: GStreamer
           Version: HEAD CVS
          Platform: Other
        OS/Version: All
            Status: UNCONFIRMED
          Severity: minor
          Priority: Normal
         Component: gst-python
        AssignedTo: gstreamer-bugs at lists.sourceforge.net
        ReportedBy: mail at renestadler.de
         QAContact: gstreamer-bugs at lists.sourceforge.net
     GNOME version: Unspecified
   GNOME milestone: Unspecified


gst.URIHandler.get_uri_type and gst.ElementFactory.get_uri_type methods return
plain integers (like their C counterparts).  I'd rather have them return
gst.URIType enum instances proper (so I can grab the value nick easily).

Attaching a trivial patch.

P.S.: Note how the C functions have inconsistent return types (gint vs. guint),
where both should be rather GstURIType it seems.


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




More information about the Gstreamer-bugs mailing list