From: Jaroslav Kysela Date: Mon, 1 Jun 2015 17:51:06 +0000 (+0200) Subject: transcoding: allow to 'not change' the resolution (use 0 value), fixes #2910 X-Git-Tag: v4.2.1~2402 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5b6ed5e75f56618dd3c32cc93cf964d830875375;p=thirdparty%2Ftvheadend.git transcoding: allow to 'not change' the resolution (use 0 value), fixes #2910 --- diff --git a/src/profile.c b/src/profile.c index 289fae2f2..317050468 100644 --- a/src/profile.c +++ b/src/profile.c @@ -1527,7 +1527,8 @@ const idclass_t profile_transcode_class = static int profile_transcode_resolution(profile_transcode_t *pro) { - return pro->pro_resolution >= 240 ? pro->pro_resolution : 240; + return pro->pro_resolution == 0 ? 0 : + (pro->pro_resolution >= 240 ? pro->pro_resolution : 240); } static int