Re: [Vala] GStreamer Gst.Pad
- From: Jan Hudec <bulb ucw cz>
- To: John - <arenal85 hotmail com>
- Cc: vala-list gnome org
- Subject: Re: [Vala] GStreamer Gst.Pad
- Date: Sat, 26 Sep 2009 20:29:02 +0200
On Sat, Sep 26, 2009 at 15:11:29 +0000, John - wrote:
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 <bulb ucw cz>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]