diff options
author | Nirbheek Chauhan <nirbheek@centricular.com> | 2014-07-14 09:50:51 (GMT) |
---|---|---|
committer | Nirbheek Chauhan <nirbheek@centricular.com> | 2014-07-14 09:50:51 (GMT) |
commit | 292c41daa52dd4103cc4d1b3d11bda0f90295b9f (patch) | |
tree | 55e36f5a3a8904d562d03296dcd92cbcbbde7c85 /src/encode.c | |
parent | b4121d824b8f8453db88d4e9a05e141ee7c6acb9 (diff) | |
download | soup-transcoding-proxy-292c41daa52dd4103cc4d1b3d11bda0f90295b9f.zip soup-transcoding-proxy-292c41daa52dd4103cc4d1b3d11bda0f90295b9f.tar.gz |
encode: Set fakesink to sync to the clock to ensure it's always realtime
Diffstat (limited to 'src/encode.c')
-rw-r--r-- | src/encode.c | 2 |
1 files changed, 2 insertions, 0 deletions
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); |