summaryrefslogtreecommitdiff
path: root/src/lib.c
diff options
context:
space:
mode:
authorNirbheek Chauhan <nirbheek@centricular.com>2014-07-11 11:27:02 (GMT)
committerNirbheek Chauhan <nirbheek@centricular.com>2014-07-11 11:31:01 (GMT)
commit4d3eb464ab471e1754f25d6dc9673fc2533e0b5c (patch)
treee891f3226532294bc3fab5aefa9b8f8cf1888619 /src/lib.c
parent4e9b88df39128d01139414263e9cf387e3339814 (diff)
downloadsoup-transcoding-proxy-4d3eb464ab471e1754f25d6dc9673fc2533e0b5c.zip
soup-transcoding-proxy-4d3eb464ab471e1754f25d6dc9673fc2533e0b5c.tar.gz
server: Add support for persistent connection streams
Now we also support Content-Length + Content-Range persistent HTTP connections for stream data. If no further data is received before `server_timeout`, we assume the stream has been closed. This is used by souphttpclientsink for sending streams.
Diffstat (limited to 'src/lib.c')
-rw-r--r--src/lib.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib.c b/src/lib.c
index 750df87..2d86b7c 100644
--- a/src/lib.c
+++ b/src/lib.c
@@ -43,7 +43,7 @@ stp_on_gst_bus_message (GstBus *bus,
g_free (tmp);
/* Setting the server response will only work if the request
* hasn't already finished, so we check that */
- if (!ctx->request_finished)
+ if (!ctx->stream_finished)
soup_message_set_status (ctx->msg, SOUP_STATUS_INTERNAL_SERVER_ERROR);
g_hash_table_remove (ctx->parent_ctx_table, ctx->path);
break;
@@ -73,7 +73,7 @@ stp_cleanup_transcode_server_ctx (TranscodeServerCtx *ctx)
/* Cleanup gstreamer pipeline */
gst_element_set_state (ctx->pipeline, GST_STATE_NULL);
gst_object_unref (ctx->pipeline);
- ctx->pipeline_is_playing = FALSE;
+ g_free (ctx->path);
g_free (ctx);
}