From 720b406ed6382187bbb60ec9038828178d58736b Mon Sep 17 00:00:00 2001 From: Nirbheek Chauhan Date: Thu, 10 Jul 2014 20:40:14 +0530 Subject: debug: Use separate #ifdefs for each DEBUG --- src/encode.c | 4 ++-- 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 diff --git a/src/main.c b/src/main.c index 7834c53..db08a60 100644 --- a/src/main.c +++ b/src/main.c @@ -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); -- cgit v0.11.2-2-gd1dd