summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorNirbheek Chauhan <nirbheek@centricular.com>2014-07-11 08:08:26 (GMT)
committerNirbheek Chauhan <nirbheek@centricular.com>2014-07-11 08:08:28 (GMT)
commit1a80f154c44e5e304a7f8d2919063d9603723d21 (patch)
tree1b63d473e41c4d421f1d4cd9ae27f522ba9da254 /src/main.c
parentf2d69471252875ca50858ab8d15b01707ebef02d (diff)
downloadsoup-transcoding-proxy-1a80f154c44e5e304a7f8d2919063d9603723d21.zip
soup-transcoding-proxy-1a80f154c44e5e304a7f8d2919063d9603723d21.tar.gz
appsrc: Remove need-data/enough-data signal handlers
Dead code. Signals were disabled, and using this and pausing the message causes problems with libsoup.
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c24
1 files changed, 0 insertions, 24 deletions
diff --git a/src/main.c b/src/main.c
index 3d0933c..452f84a 100644
--- a/src/main.c
+++ b/src/main.c
@@ -34,26 +34,6 @@ get_server_ctx_from_msg (SoupMessage *msg,
return ctx;
}
-static void
-enough_data_pause_message (GstElement *appsrc,
- guint size,
- TranscodeServerCtx *ctx)
-{
- /* Pausing the request can cause weirdness if
- * the recv rate is too high. So, we don't do this. */
- //g_print ("Enough data, pause. ");
- //soup_server_pause_message (server, ctx->msg);
-}
-
-static void
-need_data_unpause_message (GstElement *appsrc,
- guint size,
- TranscodeServerCtx *ctx)
-{
- //g_print ("Need data, unpause. \n");
- //soup_server_unpause_message (server, ctx->msg);
-}
-
static GstPadProbeReturn
tee_src_pad_blocked_cb (GstPad *srcpad,
GstPadProbeInfo *info,
@@ -447,10 +427,6 @@ PUT: {
#else
stp_encode_from_msg (ctx);
#endif
- g_signal_connect (ctx->appsrc, "need-data",
- G_CALLBACK (need_data_unpause_message), ctx);
- g_signal_connect (ctx->appsrc, "enough-data",
- G_CALLBACK (enough_data_pause_message), ctx);
}
/* The request body isn't fixed length, so tell libsoup to