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 308256 - GstBuffer has wrong type
GstBuffer has wrong type
Status: RESOLVED NOTABUG
Product: GStreamer
Classification: Platform
Component: gstreamer (core)
0.8.10
Other Linux
: Normal normal
: NONE
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2005-06-19 07:19 UTC by Kari Pahula
Modified: 2005-08-29 15:25 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Kari Pahula 2005-06-19 07:19:57 UTC
Version details: Debian package 0.8.10-1
Distribution/Version: Debian unstable

I have in my element the following:
  g_object_class_install_property (gobject_class, ARG_BUFFER,
    g_param_spec_object ("buffer", "Buffer", "Buffer to sink data to",
                          GST_TYPE_BUFFER, G_PARAM_READWRITE));

Registering this element give the following errors:
(process:25855): GLib-GObject-CRITICAL **: g_param_spec_object: assertion
`g_type_is_a (object_type, G_TYPE_OBJECT)' failed

(process:25855): GLib-GObject-CRITICAL **: g_object_class_install_property:
assertion `G_IS_PARAM_SPEC (pspec)' failed
Added plugin buffersink with 1 feature.

Replacing the type with, for example, GST_TYPE_ELEMENT makes this error go away
(but then it'll run into errors at run time since it is not what I want.)
Comment 1 Kari Pahula 2005-06-19 07:24:23 UTC
I put the plugins I managed to get this error with to
http://users.utu.fi/kaolpa/gst/
Comment 2 David Schleef 2005-06-19 08:10:16 UTC
GstBuffer isn't a GObject, what were you expecting?  You're probably looking for
g_param_spec_boxed().