Ticket #222: dvb_recordts.patch

File dvb_recordts.patch, 1.8 KB (added by jesper@…, 19 years ago)
  • libs/libmythtv/videosource.cpp

     
    10131013    {
    10141014        setLabel(QObject::tr("Record in TS format instead of PS."));
    10151015        setHelpText(
    1016             QObject::tr("Disables Transport Stream to Program Stream "
    1017                         "conversion. TS recording results in slightly bigger "
    1018                         "files, but reduces the risk of processing errors."));
     1016            QObject::tr("Disables the built-in Transport Stream (TS) to "
     1017                        "Program Stream (PS) conversion. TS generally "
     1018                        "works better with MythTV so most people probably "
     1019                        "want this enabled."));
    10191020    };
    10201021};
    10211022
  • libs/libmythtv/dbcheck.cpp

     
    1010#include "mythdbcon.h"
    1111
    1212/// This is the DB schema version expected by the running MythTV instance.
    13 const QString currentDatabaseVersion = "1090";
     13const QString currentDatabaseVersion = "1091";
    1414
    1515static bool UpdateDBVersionNumber(const QString &newnumber);
    1616static bool performActualUpdate(const QString updates[], QString version,
     
    19911991            return false;
    19921992    }
    19931993
     1994    if (dbver == "1090")
     1995    {
     1996        const QString updates[] = {
     1997            "ALTER TABLE capturecard CHANGE dvb_recordts dvb_recordts INT DEFAULT '1';",
     1998            "UPDATE capturecard SET dvb_recordts=1;",
     1999            ""
     2000        };
     2001
     2002        if (!performActualUpdate(updates, "1091", dbver))
     2003            return false;
     2004    }
     2005
    19942006// Drop xvmc_buffer_settings at some point
    19952007// Drop dead DVB tables eventually, too   
    19962008