[Gtk-sharp-list] gapi-codegen changes? (gst-sharp problems)
Jorge García
jgarcia@ac.upc.es
Mon, 16 Feb 2004 00:07:00 +0100
--=-GC/0pB/Qn/n40osczXGS
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
Hello,
I'm trying to get gst-sharp working. Last time I checked it (gtk-sharp
0.14) it compiled but testing it with GstPlayer.cs nothing was played
because the function bin.Iterate() always returned false.
Now with gtk-sharp-0.16 it doesn't compile. It seems that there were any
change in gapi-codegen that make it to not compile.
This is an example of generated code that doesn't compile: Pad.cs
(gtk-sharp-0.16, mono 0.30.1, gstreamer-0.6.4, Fedora Core1):
[DllImport("gstreamer")]
static extern void gst_pad_set_convert_function(IntPtr raw,
GstSharp.PadConvertFunctionNative convert);
public Gst.PadConvertFunction ConvertFunction {
set {
GstSharp.PadConvertFunctionWrapper value_wrapper = null;
convert_wrapper = new GstSharp.PadConvertFunctionWrapper
(convert, this);
gst_pad_set_convert_function(Handle,
value_wrapper.NativeDelegate);
}
}
Error message:
./generated/Pad.cs(87) error CS0103: The name `convert' could not be
found in `Gst.Pad
This is the code generaded in gtk-sharp-0.14:
[DllImport("gstreamer")]
static extern void gst_pad_set_convert_function(IntPtr raw,
GstSharp.PadConvertFunctionNative convert);
public Gst.PadConvertFunction ConvertFunction {
set {
GstSharp.PadConvertFunctionWrapper value_wrapper = null;
value_wrapper = new GstSharp.PadConvertFunctionWrapper (value,
this);
gst_pad_set_convert_function(Handle,
value_wrapper.NativeDelegate);
}
}
I'm sorry but I'm a beginner with C# and gkt-bindings I don't know how
to fix it. I have tried to compile it with gst-api.xml from gtk-0.14 but
the problem remains, and generating myself this file from gstreamer
sources too. Any idea?
Jorge
--=-GC/0pB/Qn/n40osczXGS
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: 7bit
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
<META NAME="GENERATOR" CONTENT="GtkHTML/3.0.9">
</HEAD>
<BODY>
<BR>
Hello,<BR>
<BR>
I'm trying to get gst-sharp working. Last time I checked it (gtk-sharp 0.14) it compiled but testing it with GstPlayer.cs nothing was played because the function bin.Iterate() always returned false. <BR>
<BR>
Now with gtk-sharp-0.16 it doesn't compile. It seems that there were any change in gapi-codegen that make it to not compile.<BR>
<BR>
This is an example of generated code that doesn't compile: Pad.cs (gtk-sharp-0.16, mono 0.30.1, gstreamer-0.6.4, Fedora Core1):<BR>
<BR>
[DllImport("gstreamer")]<BR>
static extern void gst_pad_set_convert_function(IntPtr raw, GstSharp.PadConvertFunctionNative convert);<BR>
<BR>
public Gst.PadConvertFunction ConvertFunction { <BR>
set {<BR>
GstSharp.PadConvertFunctionWrapper value_wrapper = null;<BR>
convert_wrapper = new GstSharp.PadConvertFunctionWrapper (convert, this);<BR>
gst_pad_set_convert_function(Handle, value_wrapper.NativeDelegate);<BR>
}<BR>
}<BR>
<BR>
Error message:<BR>
./generated/Pad.cs(87) error CS0103: The name `convert' could not be found in `Gst.Pad<BR>
<BR>
<BR>
This is the code generaded in gtk-sharp-0.14:<BR>
[DllImport("gstreamer")]<BR>
<BR>
static extern void gst_pad_set_convert_function(IntPtr raw, GstSharp.PadConvertFunctionNative convert);<BR>
<BR>
public Gst.PadConvertFunction ConvertFunction { <BR>
set {<BR>
GstSharp.PadConvertFunctionWrapper value_wrapper = null;<BR>
value_wrapper = new GstSharp.PadConvertFunctionWrapper (value, this);<BR>
gst_pad_set_convert_function(Handle, value_wrapper.NativeDelegate);<BR>
}<BR>
}<BR>
<BR>
I'm sorry but I'm a beginner with C# and gkt-bindings I don't know how to fix it. I have tried to compile it with gst-api.xml from gtk-0.14 but the problem remains, and generating myself this file from gstreamer sources too. Any idea?<BR>
<BR>
Jorge<BR>
<BR>
</BODY>
</HTML>
--=-GC/0pB/Qn/n40osczXGS--