Ticket #1308: transcoded_flag.patch
File transcoded_flag.patch, 3.5 KB (added by , 18 years ago) |
---|
-
libs/libmythtv/jobqueue.cpp
1905 1905 .arg(PrettyPrint(origfilesize)) 1906 1906 .arg(PrettyPrint(filesize)); 1907 1907 ChangeJobStatus(jobID, JOB_FINISHED, comment); 1908 program_info->SetTranscoded(TRANSCODING_COMPLETE); 1908 1909 1909 1910 MythEvent me("RECORDING_LIST_CHANGE"); 1910 1911 gContext->dispatch(me); -
libs/libmythtv/dbcheck.cpp
10 10 #include "mythdbcon.h" 11 11 12 12 /// This is the DB schema version expected by the running MythTV instance. 13 const QString currentDatabaseVersion = "112 4";13 const QString currentDatabaseVersion = "1125"; 14 14 15 15 static bool UpdateDBVersionNumber(const QString &newnumber); 16 16 static bool performActualUpdate(const QString updates[], QString version, … … 2016 2016 return false; 2017 2017 } 2018 2018 2019 if(dbver == "1124") 2020 { 2021 const QString updates[] = { 2022 "ALTER TABLE recorded ADD COLUMN transcoded TINYINT(1) NOT NULL DEFAULT 0;", 2023 "UPDATE recorded SET transcoded=1;", 2024 "" 2025 }; 2026 if (!performActualUpdate(updates, "1125", dbver)) 2027 return false; 2028 } 2029 2019 2030 // Drop xvmc_buffer_settings table in 0.20 2020 2031 // Drop dvb_dmx_buf_size and dvb_pkt_buf_size columns of channel in 0.20 2021 2032 -
libs/libmythtv/programinfo.h
38 38 COMM_FLAG_COMMFREE = 3 39 39 }; 40 40 41 enum TranscodingResults { 42 TRANSCODING_INCOMPLETE = 0, 43 TRANSCODING_COMPLETE = 1 44 }; 45 41 46 enum TranscoderStatus { 42 47 TRANSCODE_QUEUED = 0x01, 43 48 TRANSCODE_RETRY = 0x02, … … 197 202 void SetBookmark(long long pos) const; 198 203 void SetEditing(bool edit) const; 199 204 void SetDeleteFlag(bool deleteFlag) const; 205 void SetTranscoded(int flag) const; 200 206 void SetCommFlagged(int flag) const; // 1 = flagged, 2 = processing 201 207 void SetAutoExpire(int autoExpire) const; 202 208 void SetPreserveEpisode(bool preserveEpisode) const; -
libs/libmythtv/programinfo.cpp
1879 1879 return false; 1880 1880 } 1881 1881 1882 /** \fn ProgramInfo::SetTranscoded(int) const 1883 * \brief Set "transcoded" field in "recorded" table to "flag". 1884 * \param flag value to set transcoded field to. 1885 */ 1886 void ProgramInfo::SetTranscoded(int flag) const 1887 { 1888 MSqlQuery query(MSqlQuery::InitCon()); 1889 1890 query.prepare("UPDATE recorded" 1891 " SET transcoded = :FLAG" 1892 " WHERE chanid = :CHANID" 1893 " AND starttime = :STARTTIME ;"); 1894 query.bindValue(":FLAG", flag); 1895 query.bindValue(":CHANID", chanid); 1896 query.bindValue(":STARTTIME", recstartts); 1897 1898 if(!query.exec() || !query.isActive()) 1899 MythContext::DBError("Transcoded status update", 1900 query); 1901 } 1902 1882 1903 /** \fn ProgramInfo::SetCommFlagged(int) const 1883 1904 * \brief Set "commflagged" field in "recorded" table to "flag". 1884 1905 * \param flag value to set commercial flagging field to.