summaryrefslogtreecommitdiff
path: root/src/lib.c
diff options
context:
space:
mode:
authorNirbheek Chauhan <nirbheek@centricular.com>2014-07-14 16:44:01 (GMT)
committerNirbheek Chauhan <nirbheek@centricular.com>2014-07-14 16:44:01 (GMT)
commit54742d00a169b5e5469b00eb9ad66685bb4d2e42 (patch)
tree144542449a8842d760c793299a1d9dab74bdba9b /src/lib.c
parente24395dd55d601211c27646b4ebde4e95fda72af (diff)
downloadsoup-transcoding-proxy-54742d00a169b5e5469b00eb9ad66685bb4d2e42.zip
soup-transcoding-proxy-54742d00a169b5e5469b00eb9ad66685bb4d2e42.tar.gz
debug: Remove extra newlines, and use g_critical everywhere
Diffstat (limited to 'src/lib.c')
-rw-r--r--src/lib.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib.c b/src/lib.c
index fa23256..5816b4e 100644
--- a/src/lib.c
+++ b/src/lib.c
@@ -35,9 +35,9 @@ stp_on_gst_bus_message (GstBus *bus,
switch (GST_MESSAGE_TYPE (msg)) {
case GST_MESSAGE_ERROR:
gst_message_parse_error (msg, &error, &tmp);
- g_printerr ("ERROR from element %s: %s\n",
+ g_critical ("ERROR from element %s: %s",
GST_OBJECT_NAME (msg->src), error->message);
- g_printerr ("Debug info: %s\n", tmp);
+ g_critical ("Debug info: %s", tmp);
g_error_free (error);
g_free (tmp);
/* Setting the server response will only work if the request
@@ -48,7 +48,7 @@ stp_on_gst_bus_message (GstBus *bus,
g_hash_table_remove (ctx->parent_ctx_table, ctx->path);
break;
case GST_MESSAGE_EOS:
- g_debug ("End of file\n");
+ g_debug ("End of file");
g_hash_table_remove (ctx->parent_ctx_table, ctx->path);
break;
default:
@@ -74,7 +74,7 @@ gboolean stp_unref_gst_buffer (GstBuffer **buffer,
void
stp_cleanup_transcode_server_ctx (TranscodeServerCtx *ctx)
{
- g_debug (">>> Doing server cleanup\n");
+ g_debug (">>> Doing server cleanup");
/* Disconnect and free the context for each client */
g_list_foreach (ctx->clients, (GFunc)stp_disconnect_cleanup_client, NULL);