diff options
author | Nirbheek Chauhan <nirbheek@centricular.com> | 2014-07-11 08:08:26 (GMT) |
---|---|---|
committer | Nirbheek Chauhan <nirbheek@centricular.com> | 2014-07-11 08:08:28 (GMT) |
commit | 1a80f154c44e5e304a7f8d2919063d9603723d21 (patch) | |
tree | 1b63d473e41c4d421f1d4cd9ae27f522ba9da254 /src/main.c | |
parent | f2d69471252875ca50858ab8d15b01707ebef02d (diff) | |
download | soup-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.c | 24 |
1 files changed, 0 insertions, 24 deletions
@@ -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 |