diff options
author | Nirbheek Chauhan <nirbheek@centricular.com> | 2014-07-17 15:11:00 (GMT) |
---|---|---|
committer | Nirbheek Chauhan <nirbheek@centricular.com> | 2014-07-17 15:11:00 (GMT) |
commit | 8437746494e6d414314f03a0b815dcf0b191ce4d (patch) | |
tree | a4a91bb93303b84cb3e30d70fe856a5d88fcf508 | |
parent | e0f6ea3901e1dd767b0b33e9bcea5b3c9c09d42e (diff) | |
download | soup-transcoding-proxy-8437746494e6d414314f03a0b815dcf0b191ce4d.zip soup-transcoding-proxy-8437746494e6d414314f03a0b815dcf0b191ce4d.tar.gz |
Use G_SOURCE_REMOVE instead of FALSE
-rw-r--r-- | src/lib.c | 4 | ||||
-rw-r--r-- | src/main.c | 8 |
2 files changed, 6 insertions, 6 deletions
@@ -28,14 +28,14 @@ static gboolean invoke_g_hash_table_remove (TranscodeServerCtx *ctx) { g_hash_table_remove (ctx->parent_ctx_table, ctx->path); - return FALSE; + return G_SOURCE_REMOVE; } static gboolean invoke_g_free_client_context (TranscodeClientCtx *ctx) { g_free (ctx); - return FALSE; + return G_SOURCE_REMOVE; } gboolean @@ -127,7 +127,7 @@ invoke_write_client_chunk (TranscodeClientCtx *ctx) * after the client has disconnected and the SoupMessage is invalid. * When the client disconnects, timeout_handler_id is set to 0. */ if (G_UNLIKELY (ctx->timeout_handler_id == 0)) - return FALSE; + return G_SOURCE_REMOVE; g_signal_emit_by_name (ctx->appsink, "pull-sample", &sample); if (!sample) { @@ -138,7 +138,7 @@ invoke_write_client_chunk (TranscodeClientCtx *ctx) else soup_message_set_status (ctx->msg, SOUP_STATUS_INTERNAL_SERVER_ERROR); soup_message_body_complete (ctx->msg->response_body); - return FALSE; + return G_SOURCE_REMOVE; } buffer = gst_sample_get_buffer (sample); @@ -147,7 +147,7 @@ invoke_write_client_chunk (TranscodeClientCtx *ctx) if (!ctx->keyframe_found && GST_BUFFER_FLAG_IS_SET (buffer, GST_BUFFER_FLAG_DELTA_UNIT)) { gst_sample_unref (sample); - return FALSE; + return G_SOURCE_REMOVE; } ctx->keyframe_found = TRUE; @@ -161,7 +161,7 @@ invoke_write_client_chunk (TranscodeClientCtx *ctx) soup_server_unpause_message (server, ctx->msg); stp_print_status ("."); - return FALSE; + return G_SOURCE_REMOVE; } static GstFlowReturn |