gstrtspserver vala binding

Andrey Nikitin andrey.d.nikitin at gmail.com
Sat Jun 4 11:55:50 PDT 2011


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)


More information about the gstreamer-devel mailing list