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

GStreamer (bugzilla.gnome.org) bugzilla-daemon at bugzilla.gnome.org
Fri Jul 27 04:22:16 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

Edward Hervey changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bilboed at bilboed.com
  Attachment #87718|none                        |committed
               Flag|                            |
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |FIXED
   Target Milestone|HEAD                        |0.10.8




------- Comment #2 from Edward Hervey  2007-07-27 11:22 UTC -------
This is fine by me. The reason why is because you could already check before
whether the return value was equal to gst.URI_*

OLD BEHAVIOUR:

In [2]: e = gst.element_factory_make("gnomevfssrc")

In [4]: e.get_uri_type()
Out[4]: 2L

In [5]: e.get_uri_type() == gst.URI_SRC
Out[5]: True



NEW BEHAVIOUR:

In [3]: e.get_uri_type()
Out[3]: <enum GST_URI_SRC of type GstURIType>

In [4]: e.get_uri_type() == gst.URI_SRC
Out[4]: True



2007-07-27  Rene Stadler <mail at renestadler.de>

        reviewed by: Edward Hervey  <bilboed at bilboed.com>
        * gst/gst.defs:
        Make .get_uri_type() methods return a GstURIType enum instead of an
        integer.
        Fixes #436620


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