[gst-devel] adding signals

Savage, ShaunX V shaunx.v.savage at intel.com
Thu Dec 8 11:04:06 CET 2005

I am trying to "add" a socket to tcpserversink.  



void add (GstElement* object, gint arg0, gpointer user_data)





  tcp_sink = gst_element_factory_make ("tcpserversink", "server-sink");

  g_signal_connect(G_OBJECT (tcp_sink),"add",G_CALLBACK(add),"add");

"How do I get the right signal?"



        fd = accept(sd, &addr, &rslt);

        if (fd < 0)

                return fd;

        close(sd);  //for now


//      gst_multi_fd_sink_add((GstMultiFdSink*)sink,fd);

//      ((GstMultiFdSinkClass*)sink)->add(sink,fd);

//      sink->element.add(sink,fd);



        rslt = fcntl (fd, F_SETFL, O_NONBLOCK);




(gst-app:31044): GLib-GObject-WARNING **: gsignal.c:2181: signal id
`134518609' is invalid for instance `0x89ce5c0'

Setting to PLAYING



Returned, stopping playback

Deleting pipeline

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20051208/3e58d9cb/attachment.htm>

More information about the gstreamer-devel mailing list