Re: [Vala] GStreamer Gst.Pad
- From: John - <arenal85 hotmail com>
- To: <vala-list gnome org>
- Subject: Re: [Vala] GStreamer Gst.Pad
- Date: Sun, 27 Sep 2009 08:35:43 +0000
I get this :
valac -d '/home/john/Documents/Vala/tests/bin' -g --pkg "glib-2.0" --pkg "gdk-2.0" --pkg "gmodule-2.0"
--pkg "gtk+-2.0" --pkg "gstreamer-0.10" "/home/john/Documents/Vala/tests/test.vala" -o "test"
test.vala: In function ‘test_run’:
test.vala:53: warning: passing argument 2 of ‘gst_pad_add_buffer_probe’ from incompatible pointer type
/usr/include/gstreamer-0.10/gst/gstutils.h:1117: note: expected ‘GCallback’ but argument is of type ‘gboolean
(*)(struct GstPad *, struct GstBuffer *, void *)’
I try with :
Pad.add_buffer_probe(this.test_buffer);
public bool test_buffer (Pad pad, Buffer buffer) {}
And I get :
expected ‘GCallback’ but argument is of type ‘gboolean (*)(struct GstPad *, struct GstBuffer *, void *)’]
Please, quote exact error messages in full. This is obviously a C warning,
not a vala error, right? Just ignore it.
Whenever you get incompatible pointer types warning from C compiler, it is
spurious unless you are actually debugging the .vapi file (in which case it
might mean you have declared the delegate type incorrectly).
In this case it's actually a bug on gstreamer side, because they actually do
expect 'gboolean (*)(struct GstPad *, struct GstBuffer *, void *)' but they
declared it a GCallback for unknown reasons.
--
Jan 'Bulb' Hudec
_________________________________________________________________
Connect to the next generation of MSN Messenger
http://imagine-msn.com/messenger/launch80/default.aspx?locale=en-us&source=wlmailtagline
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]