GNOME Bugzilla – Bug 595377
Setting properties on gulong Element throws exception
Last modified: 2009-11-25 07:17:02 UTC
Example: Element encoder = ElementFactory.Make("ffenc_wmv2", "ffenc_wmv20"); encoder["bitrate"] = 1500000; Result: System.Exception: Unknown type gulong at Gst.GLib.Value.set_Val (System.Object value) [0x0040b] in /home/topaz/oss_devel/gstreamer/gstreamer-sharp-0.9.0/gstreamer-sharp/glib-sharp/Value.cs:533 at Gst.Object.set_Item (System.String property, System.Object value) [0x00009] in /home/topaz/oss_devel/gstreamer/gstreamer-sharp-0.9.0/gstreamer-sharp/generated/Object.custom:10
That's interesting, thanks. I'll take a look at this tomorrow, should be quite easy to fix. Thanks for reporting :)
I was going to mention that I'm running on a 64-bit Ubuntu system. Perhaps this is a 32/64 bit issue? Don't know, but just thought I'd mention it in case it doesn't repro on a 32-bit box.
Created attachment 143317 [details] [review] Support gulong and glong GValues Fixes bug #595377.
Attachment 143317 [details] pushed as 405ff9c - Support gulong and glong GValues
See also https://bugzilla.novell.com/show_bug.cgi?id=539812 because this really is a bug in glib-sharp.
commit 3705895 Update glib-sharp from gtk-sharp trunk This commit broke this gulong/glong problem again.
Yes, you have to explicitely cast the value to ulong it seems... Let's reopen the upstream bug.
commit 579b8f3277800c7a4ddda8c9dedf3bcabf01c5ac Author: Sebastian Dröge <sebastian.droege@collabora.co.uk> Date: Wed Nov 25 08:15:11 2009 +0100 Update glib-sharp from trunk Fixes bug #595377.