diff options
author | Nirbheek Chauhan <nirbheek@centricular.com> | 2014-07-10 15:10:14 (GMT) |
---|---|---|
committer | Nirbheek Chauhan <nirbheek@centricular.com> | 2014-07-10 15:10:14 (GMT) |
commit | 720b406ed6382187bbb60ec9038828178d58736b (patch) | |
tree | 8b2e2f378d3c04e390f48f6eabd63d2afebb644e | |
parent | 3839e9836d2e4740efd9610a1aa50dd792e78a59 (diff) | |
download | soup-transcoding-proxy-720b406ed6382187bbb60ec9038828178d58736b.zip soup-transcoding-proxy-720b406ed6382187bbb60ec9038828178d58736b.tar.gz |
debug: Use separate #ifdefs for each DEBUG
-rw-r--r-- | src/encode.c | 4 | ||||
-rw-r--r-- | src/main.c | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/src/encode.c b/src/encode.c index 62f0a71..a57c8a9 100644 --- a/src/encode.c +++ b/src/encode.c @@ -141,9 +141,9 @@ stp_encode_from_msg (TranscodeServerCtx *ctx) "avoid-reencoding", TRUE, NULL); tee = gst_element_factory_make ("tee", "tee"); q1 = gst_element_factory_make ("queue", "q1"); -#ifndef DEBUG +#ifdef ENCODE_DEBUG fakesink = gst_element_factory_make ("filesink", "filesink"); - g_object_set (fakesink, "location", "debug-output.webm", NULL); + g_object_set (fakesink, "location", "debug-encode.webm", NULL); #else fakesink = gst_element_factory_make ("fakesink", "fakesink"); #endif @@ -4,7 +4,7 @@ #include "lib.h" #include "encode.h" -#ifdef DEBUG +#ifdef PLAY_DEBUG #include "debug/local-play.h" #endif @@ -365,7 +365,7 @@ got_request_headers (SoupMessage *msg, TranscodeServerCtx *ctx; SoupURI *uri; -#ifdef DEBUG +#ifdef HEADERS_DEBUG SoupMessageHeadersIter iter; const char *name, *value; soup_message_headers_iter_init (&iter, msg->request_headers); @@ -407,7 +407,7 @@ PUT: { ctx->pipeline = gst_pipeline_new ("pipe"); /* The chunked request is copied into this stream * for consumption by the gst pipeline */ -#ifdef DEBUG +#ifdef PLAY_DEBUG stp_play_from_msg (ctx); #else stp_encode_from_msg (ctx); |