[gstreamer-bugs] [Bug 596374] probably shouldn't use -1 as special value on uint property

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Sat Sep 26 09:54:41 PDT 2009


https://bugzilla.gnome.org/show_bug.cgi?id=596374
  GStreamer | gnonlin | git

--- Comment #2 from Gabriel Burt <gabriel.burt at gmail.com> 2009-09-26 16:54:38 UTC ---
The problem is that -1 isn't a uint.   In gstreamer-sharp for instance (and
with pygst too I bet) you get an error if you try to assign anything but a uint
to that property.

Pitivi and Jokosher end up doing "priority = 2**32-1" which seems like an awful
hack to me.

Could also fix this by making this special priority = 0, the highest priority =
1, etc.

Or, if you're going to keep 0xFFFFFFFF being the special value, at least change
the documentation to make sense - say that the special value is G_MAXUINT32 and
say that "The lowest priority is G_MAXUINT32 - 1."

-- 
Configure bugmail: https://bugzilla.gnome.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.




More information about the Gstreamer-bugs mailing list