summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorNirbheek Chauhan <nirbheek@centricular.com>2014-07-17 15:11:00 (GMT)
committerNirbheek Chauhan <nirbheek@centricular.com>2014-07-17 15:11:00 (GMT)
commit8437746494e6d414314f03a0b815dcf0b191ce4d (patch)
treea4a91bb93303b84cb3e30d70fe856a5d88fcf508 /src/main.c
parente0f6ea3901e1dd767b0b33e9bcea5b3c9c09d42e (diff)
downloadsoup-transcoding-proxy-8437746494e6d414314f03a0b815dcf0b191ce4d.zip
soup-transcoding-proxy-8437746494e6d414314f03a0b815dcf0b191ce4d.tar.gz
Use G_SOURCE_REMOVE instead of FALSE
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/main.c b/src/main.c
index 1921778..7cc2d25 100644
--- a/src/main.c
+++ b/src/main.c
@@ -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