diff options
author | Nirbheek Chauhan <nirbheek@centricular.com> | 2014-07-14 15:46:39 (GMT) |
---|---|---|
committer | Nirbheek Chauhan <nirbheek@centricular.com> | 2014-07-14 15:46:40 (GMT) |
commit | df0f28945f2c32f519457e838eb424401eb586e9 (patch) | |
tree | 0069fb922da82ac01f0fa3a0eea572da7f863d35 /src/lib.h | |
parent | feee319e6b6cb4774cce72d90d1a60f5ecc9bbda (diff) | |
download | soup-transcoding-proxy-df0f28945f2c32f519457e838eb424401eb586e9.zip soup-transcoding-proxy-df0f28945f2c32f519457e838eb424401eb586e9.tar.gz |
server: Always send data from the last keyframe
Store non-keyframe buffers sent to fakesink, and push them to all new clients
Diffstat (limited to 'src/lib.h')
-rw-r--r-- | src/lib.h | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -34,6 +34,8 @@ struct _TranscodeServerCtx { SoupMessage *msg; GstElement *pipeline; GstElement *appsrc; + /* Contains buffers from the previous keyframe till right now */ + GstBufferList *keyframe; /* If the encoding is not chunked, we'll get multiple requests * with separate Content-Length headers on the same path */ SoupEncoding encoding; @@ -76,6 +78,9 @@ void stp_cleanup_transcode_client_ctx (TranscodeClientCtx *ctx); gboolean stp_on_gst_bus_message (GstBus *bus, GstMessage *msg, TranscodeServerCtx *ctx); +gboolean stp_unref_gst_buffer (GstBuffer **buffer, + guint idx, + gpointer user_data); GstBuffer* stp_get_streamheader_from_caps (GstCaps *caps); GstBuffer* stp_get_gst_buffer (SoupBuffer *chunk); |