From 2b649954346aa2e9c81834d500a25c528f31f829 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20T=C3=B6rnblom?= Date: Sun, 11 Aug 2013 21:34:43 +0200 Subject: [PATCH] transcoding: fixed copy & paste error, making it impossible to disable transcoding from the webui once enabled. --- src/webui/extjs.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/webui/extjs.c b/src/webui/extjs.c index 68eaef02..6ff9fbb8 100644 --- a/src/webui/extjs.c +++ b/src/webui/extjs.c @@ -2077,9 +2077,8 @@ extjs_config(http_connection_t *hc, const char *remain, void *opaque) /* Transcoding */ #if ENABLE_LIBAV - save = 0; - if ((str = http_arg_get(&hc->hc_req_args, "transcoding_enabled"))) - save |= transcoding_set_enabled(!!str); + str = http_arg_get(&hc->hc_req_args, "transcoding_enabled"); + save = transcoding_set_enabled(!!str); if (save) transcoding_save(); #endif