[vdr] xineliboutput subtitle crop

jdobry at centrum.cz jdobry at centrum.cz
Fri Mar 18 16:13:30 CET 2011


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.


--- 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;
      m_Device->GetOsdSize(W, H, Aspect);




More information about the vdr mailing list