multiudpsink signals

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

multiudpsink signals

lorenzocdj
Hi all,
I made a simple gstreamer #C program that uses udpsink to stream from v4l2src to some clients.
I want to change dinamically the clients that receive the stream, without destroying the pipe and restarting it. I searched and I found your plugin, multiudpsink, that it seem to do what I want using :
. I read the documentation, and I've got some doubts:
-1) Udpsink and multiudpsink work in the same way,it's possible to use them for the same purposes...But I can dinamically manage only multiudpsink's parameters. Is it right?  
-2) How can I change clients addresses? Could I do this change when the pipe is in PAUSE and PLAY state?
After the creation of the pipe, I added this commands, but they don't work properly:

sink=gst_element_factory_make("multiudpsink","output");
...
 g_signal_emit_by_name(sink, "add","192.168.1.8", 1234, NULL);

but it doesn't work. I don't receive anything to 192.168.1.8.
What is the error?

-3)Could I use g_signal_emit_by_name function when the pipe is in play or pause state?

Thank you
Lorenzo