From 292c41daa52dd4103cc4d1b3d11bda0f90295b9f Mon Sep 17 00:00:00 2001 From: Nirbheek Chauhan Date: Mon, 14 Jul 2014 15:20:51 +0530 Subject: encode: Set fakesink to sync to the clock to ensure it's always realtime --- src/encode.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/encode.c b/src/encode.c index 88d6707..00eb791 100644 --- a/src/encode.c +++ b/src/encode.c @@ -179,6 +179,8 @@ stp_encode_from_msg (TranscodeServerCtx *ctx) fakesink = gst_element_factory_make ("fakesink", "fakesink"); #endif + /* Ensure that the stream is always realtime */ + g_object_set (fakesink, "sync", TRUE, NULL); gst_bin_add_many (GST_BIN (ctx->pipeline), encodebin, tee, q1, fakesink, NULL); gst_element_link_many (encodebin, tee, q1, fakesink, NULL); -- cgit v0.11.2-2-gd1dd