diff options
author | Nirbheek Chauhan <nirbheek@centricular.com> | 2014-07-11 11:23:55 (GMT) |
---|---|---|
committer | Nirbheek Chauhan <nirbheek@centricular.com> | 2014-07-11 11:31:01 (GMT) |
commit | 4e9b88df39128d01139414263e9cf387e3339814 (patch) | |
tree | 601d7073de452ec4d8cb83480a13103481f79e5b /src/main.c | |
parent | 3095a398d88469d48a4e4ecf6e91898d82713699 (diff) | |
download | soup-transcoding-proxy-4e9b88df39128d01139414263e9cf387e3339814.zip soup-transcoding-proxy-4e9b88df39128d01139414263e9cf387e3339814.tar.gz |
misc: Fix/add a couple of error messages, etc
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 12 |
1 files changed, 9 insertions, 3 deletions
@@ -50,6 +50,9 @@ get_server_ctx_from_msg (SoupMessage *msg, ctx = g_hash_table_lookup (ctx_table, soup_uri_get_path (uri)); soup_uri_free (uri); + if (!ctx) + g_critical ("No matching context found for msg!\n"); + return ctx; } @@ -204,15 +207,18 @@ stream_finished_cb (SoupMessage *msg, { gboolean ret; - g_print ("Stream finished/aborted, sending EOS...\n"); + g_print ("Stream finished/aborted, queueing EOS... "); ctx->request_finished = TRUE; /* Incoming stream has ended */ g_signal_emit_by_name (ctx->appsrc, "end-of-stream", &ret); - if (!ret) - g_printerr ("Unable to emit end-of-stream after an aborted stream\n"); + if (ret != GST_FLOW_OK) + g_printerr ("\nUnable to emit end-of-stream after an aborted stream\n"); + else + g_print ("Done.\n"); } +/* This is called when the entire request body has been read */ static void handle_request_cb (SoupServer *server, SoupMessage *msg, |