gstrtspserver vala binding

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

gstrtspserver vala binding

Andrey Nikitin
Hi, I have a problem with vala binding
and would like to get a simplest example.

$ cat > main.c <<__EOF__
using Gst;
// using GstRtspServer; ???

void main (string[] args) {
    // Initializing GStreamer
    Gst.init (ref args);

    /* create a server instance */
    var server = new RTSPServer(); // ???

}
__EOF__

$ valac --pkg gstreamer-0.10 --pkg gstreamer-rtsp-0.10 main.vala
main.vala:14.22-14.31: error: The name `RTSPServer' does not exist in the context of `main'
    var server = new RTSPServer();
                     ^^^^^^^^^^
main.vala:14.9-14.33: error: var declaration not allowed with non-typed initializer
    var server = new RTSPServer();
        ^^^^^^^^^^^^^^^^^^^^^^^^^
Compilation failed: 2 error(s), 0 warning(s)
_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel