[farsight2/master] Emit GstForceKeyUnit when rawudp starts sending

Olivier Crête olivier.crete at collabora.co.uk
Fri Apr 10 11:06:22 PDT 2009


---
 transmitters/rawudp/fs-rawudp-transmitter.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/transmitters/rawudp/fs-rawudp-transmitter.c b/transmitters/rawudp/fs-rawudp-transmitter.c
index 8fd0bc5..4a1aab7 100644
--- a/transmitters/rawudp/fs-rawudp-transmitter.c
+++ b/transmitters/rawudp/fs-rawudp-transmitter.c
@@ -999,6 +999,9 @@ fs_rawudp_transmitter_udpport_add_dest (UdpPort *udpport,
 {
   GST_DEBUG ("Adding dest %s:%d", ip, port);
   g_signal_emit_by_name (udpport->udpsink, "add", ip, port);
+  gst_element_send_event (udpport->udpsink,
+      gst_event_new_custom (GST_EVENT_CUSTOM_UPSTREAM,
+          gst_structure_new ("GstForceKeyUnit", NULL)));
 }
 
 
-- 
1.5.6.5




More information about the farsight-commits mailing list