From patchwork Fri Mar 18 15:13:30 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: jdobry@centrum.cz X-Patchwork-Id: 12870 Received: from mail.tu-berlin.de ([130.149.7.33]) by www.linuxtv.org with esmtp (Exim 4.69) (envelope-from ) id 1Q0bMw-0005dM-EP for vdr@linuxtv.org; Fri, 18 Mar 2011 16:13:38 +0100 X-tubIT-Incoming-IP: 89.235.36.82 Received: from link-v.kaznejov.cz ([89.235.36.82]) by mail.tu-berlin.de (exim-4.74/mailfrontend-a) with esmtps [TLSv1:AES256-SHA:256] for id 1Q0bMw-0006bT-9g; Fri, 18 Mar 2011 16:13:38 +0100 Received: from localhost (localhost [127.0.0.1]) by link-v.kaznejov.cz (Postfix) with ESMTP id 9D15949409 for ; Fri, 18 Mar 2011 16:13:33 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at kaznejov.cz Received: from link-v.kaznejov.cz ([127.0.0.1]) by localhost (link-v.kaznejov.cz [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id S7TWip-XjE1M for ; Fri, 18 Mar 2011 16:13:31 +0100 (CET) Received: from [192.168.62.234] (unknown [192.168.62.234]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: jirik) by link-v.kaznejov.cz (Postfix) with ESMTPSA id E2B1E49408 for ; Fri, 18 Mar 2011 16:13:30 +0100 (CET) Message-ID: <4D83769A.6050504@centrum.cz> Date: Fri, 18 Mar 2011 16:13:30 +0100 From: jdobry@centrum.cz User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.14) Gecko/20110223 Thunderbird/3.1.8 MIME-Version: 1.0 To: vdr@linuxtv.org X-PMX-Version: 5.5.4.371499, Antispam-Engine: 2.7.1.369594, Antispam-Data: 2011.3.18.150320 X-PMX-Spam: Gauge=IIIIIIII, Probability=8%, Report=' BODYTEXTP_SIZE_3000_LESS 0, BODY_SIZE_1000_LESS 0, BODY_SIZE_2000_LESS 0, BODY_SIZE_5000_LESS 0, BODY_SIZE_7000_LESS 0, BODY_SIZE_800_899 0, NO_REAL_NAME 0, __CT 0, __CTE 0, __CT_TEXT_PLAIN 0, __HAS_MSGID 0, __MIME_TEXT_ONLY 0, __MIME_VERSION 0, __MOZILLA_MSGID 0, __SANE_MSGID 0, __TO_MALFORMED_2 0, __TO_NO_NAME 0, __USER_AGENT 0' X-LSpam-Score: -3.4 (---) X-LSpam-Report: No, score=-3.4 required=5.0 tests=AWL=0.214, BAYES_00=-2.599, RCVD_IN_DNSWL_LOW=-1 autolearn=ham Subject: [vdr] xineliboutput subtitle crop X-BeenThere: vdr@linuxtv.org X-Mailman-Version: 2.1.11 Precedence: list Reply-To: VDR Mailing List List-Id: VDR Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 Mar 2011 15:13:38 -0000 Status: O X-Status: X-Keywords: X-UID: 24519 Hello, On vdr 1.7.17 I have problem with xineliboutput and subtitles. It's oversized and cropped. Problem is probably incompatibility to change OSD layer size on 1.7.17 Here is my hotfix. I am not sure, if it is correct because I don't know vdr/xineliboutput internals. But it siply works for me. Jiri PS: many thanks for nice piece of SW, specially thanks to Klaus. m_Device->GetOsdSize(W, H, Aspect); --- osd.c.old 2011-03-18 15:55:32.681879469 +0100 +++ osd.c 2011-03-18 16:02:54.111874506 +0100 @@ -393,10 +393,13 @@ #if VDRVERSNUM >= 10708 +#if VDRVERSNUM < 10717 if (xc.osd_spu_scaling && (m_Layer == OSD_LEVEL_SUBTITLES || m_Layer == OSD_LEVEL_TTXTSUBS)) { m_ExtentWidth = 720; m_ExtentHeight = 576; - } else { + } else +#endif + { double Aspect; int W, H;