diff options
author | Nirbheek Chauhan <nirbheek@centricular.com> | 2014-07-14 16:44:01 (GMT) |
---|---|---|
committer | Nirbheek Chauhan <nirbheek@centricular.com> | 2014-07-14 16:44:01 (GMT) |
commit | 54742d00a169b5e5469b00eb9ad66685bb4d2e42 (patch) | |
tree | 144542449a8842d760c793299a1d9dab74bdba9b /src/encode.c | |
parent | e24395dd55d601211c27646b4ebde4e95fda72af (diff) | |
download | soup-transcoding-proxy-54742d00a169b5e5469b00eb9ad66685bb4d2e42.zip soup-transcoding-proxy-54742d00a169b5e5469b00eb9ad66685bb4d2e42.tar.gz |
debug: Remove extra newlines, and use g_critical everywhere
Diffstat (limited to 'src/encode.c')
-rw-r--r-- | src/encode.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/encode.c b/src/encode.c index 3862aa6..4054c89 100644 --- a/src/encode.c +++ b/src/encode.c @@ -38,9 +38,9 @@ on_autoplug_continue (GstElement *decodebin, g_signal_emit_by_name (encodebin, "request-pad", caps, &sinkpad); if (sinkpad != NULL) - ret = FALSE, g_debug ("encodebin can passthrough %s\n", name); + ret = FALSE, g_debug ("encodebin can passthrough %s", name); else - ret = TRUE, g_debug ("encodebin cannot passthrough %s\n", name); + ret = TRUE, g_debug ("encodebin cannot passthrough %s", name); if (sinkpad) gst_object_unref (sinkpad); @@ -76,16 +76,16 @@ on_decodebin_pad_added (GstElement *decodebin, /* We request a sink pad for the decoded stream */ g_signal_emit_by_name (encodebin, "request-pad", caps, &sinkpad); if (!sinkpad) { - g_printerr ("Failed to request a new sink pad for %s\n", name); + g_critical ("Failed to request a new sink pad for %s", name); goto out; } - g_debug ("Requested a new sink pad for %s\n", name); + g_debug ("Requested a new sink pad for %s", name); } else { - g_debug ("Found an existing sink pad for %s\n", name); + g_debug ("Found an existing sink pad for %s", name); } if (gst_pad_link (srcpad, sinkpad) != GST_PAD_LINK_OK) - g_printerr ("Couldn't link pads for %s\n", name); + g_critical ("Couldn't link pads for %s", name); out: g_free (name); @@ -170,7 +170,7 @@ stp_encode_from_msg (TranscodeServerCtx *ctx) GstElement *tee, *q1, *fakesink; GstEncodingProfile *profile; - g_debug ("Constructing pipeline\n"); + g_debug ("Constructing pipeline"); src = gst_element_factory_make ("appsrc", "src"); g_object_set (src, "is-live", TRUE, |