[farsight2/master] Emit GstForceKeyUnit when nice starts sending

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


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

diff --git a/transmitters/nice/fs-nice-transmitter.c b/transmitters/nice/fs-nice-transmitter.c
index 4e62470..d113ca9 100644
--- a/transmitters/nice/fs-nice-transmitter.c
+++ b/transmitters/nice/fs-nice-transmitter.c
@@ -903,6 +903,10 @@ fs_nice_transmitter_set_sending (FsNiceTransmitter *self,
           if (GST_PAD_LINK_FAILED(ret))
             GST_ERROR ("Could not link nicesink to its tee pad");
           gst_object_unref (elempad);
+
+          gst_element_send_event (ns->nicesinks[c],
+              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