Re: [Vala] How to implement the get_type method of Gst.URIHandler interface in vala?

2014-03-18 Thread Lei Miao
, LM On 3/18/2014 4:35 AM, Luca Bruno wrote: On 17/03/2014 20:29, Lei Miao wrote: Thanks for pointing out the typo. Unfortunately, it doesn't resolve the problem. Below is what I have right now in gstreamer-1.0.vapi: [CCode (cheader_filename = gst/gst.h, type_cname

Re: [Vala] How to implement the get_type method of Gst.URIHandler interface in vala?

2014-03-17 Thread Lei Miao
, Luca Bruno lethalma...@gmail.com wrote: On 16/03/2014 22:33, Lei Miao wrote: Yes, I tried it, but it has no effect. I have the following in my vala code: ... [CCode (vfunc = get_type)] public URIType get_uri_type (Type type) { return URIType.SRC; } ... Is it what you recommended

Re: [Vala] How to implement the get_type method of Gst.URIHandler interface in vala?

2014-03-16 Thread Lei Miao
by gstreamer uses get_type, can you point to the specific C method? On Sat, Mar 15, 2014 at 4:05 PM, Lei Miao leimia...@gmail.com mailto:leimia...@gmail.com wrote: Thank you for the response. I could implement get_uri_type, but the problem

Re: [Vala] How to implement the get_type method of Gst.URIHandler interface in vala?

2014-03-16 Thread Lei Miao
in ...gst_uri_handler_interface_init() function in the generated c file. Regards, LM On 3/16/2014 10:37 AM, Luca Bruno wrote: Why isn't [CCode (vfunc = get_type)] related to it? Did you try already? On Sun, Mar 16, 2014 at 3:07 PM, Lei Miao leimia...@gmail.com mailto:leimia...@gmail.com wrote: Thank you

Re: [Vala] How to implement the get_type method of Gst.URIHandler interface in vala?

2014-03-15 Thread Lei Miao
you are using get_type. Implement get_uri_type. On Fri, Mar 14, 2014 at 10:21 PM, Lei Miao leimia...@gmail.com wrote: Hi, I am trying to write a gstreamer 1.0 plugin using vala. However, I am having trouble to implement the get_type() method of the Gst.URIHandler interface defined here

[Vala] How to implement the get_type method of Gst.URIHandler interface in vala?

2014-03-14 Thread Lei Miao
Hi, I am trying to write a gstreamer 1.0 plugin using vala. However, I am having trouble to implement the get_type() method of the Gst.URIHandler interface defined here: http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/gstreamer-GstUriHandler.html#GstURIHandlerInterface.