After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 595377 - Setting properties on gulong Element throws exception
Setting properties on gulong Element throws exception
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-sharp
0.9.x
Other Linux
: Normal normal
: 0.9.2
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2009-09-16 15:14 UTC by Jae Stutzman
Modified: 2009-11-25 07:17 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Support gulong and glong GValues (2.81 KB, patch)
2009-09-17 04:45 UTC, Sebastian Dröge (slomo)
committed Details | Review

Description Jae Stutzman 2009-09-16 15:14:51 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
Comment 1 Sebastian Dröge (slomo) 2009-09-16 18:09:18 UTC
That's interesting, thanks. I'll take a look at this tomorrow, should be quite easy to fix.

Thanks for reporting :)
Comment 2 Jae Stutzman 2009-09-16 18:20:19 UTC
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.
Comment 3 Sebastian Dröge (slomo) 2009-09-17 04:45:06 UTC
Created attachment 143317 [details] [review]
Support gulong and glong GValues

Fixes bug #595377.
Comment 4 Sebastian Dröge (slomo) 2009-09-17 04:47:04 UTC
Attachment 143317 [details] pushed as 405ff9c - Support gulong and glong GValues
Comment 5 Sebastian Dröge (slomo) 2009-09-17 05:09:00 UTC
See also https://bugzilla.novell.com/show_bug.cgi?id=539812 because this really is a bug in glib-sharp.
Comment 6 Jae Stutzman 2009-10-21 20:33:04 UTC
commit 3705895
    Update glib-sharp from gtk-sharp trunk

This commit broke this gulong/glong problem again.
Comment 7 Sebastian Dröge (slomo) 2009-10-22 05:28:08 UTC
Yes, you have to explicitely cast the value to ulong it seems... Let's reopen the upstream bug.
Comment 8 Sebastian Dröge (slomo) 2009-11-25 07:17:02 UTC
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.