From 1a80f154c44e5e304a7f8d2919063d9603723d21 Mon Sep 17 00:00:00 2001 From: Nirbheek Chauhan Date: Fri, 11 Jul 2014 13:38:26 +0530 Subject: appsrc: Remove need-data/enough-data signal handlers Dead code. Signals were disabled, and using this and pausing the message causes problems with libsoup. --- src/main.c | 24 ------------------------ 1 file changed, 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 -- cgit v0.11.2-2-gd1dd