Ticket #2035: transcode_jobqueue_status.diff
File transcode_jobqueue_status.diff, 1.9 KB (added by , 17 years ago) |
---|
-
libs/libmythtv/jobqueue.cpp
old new void JobQueue::DoTranscodeThread(void) 1832 1832 } 1833 1833 else 1834 1834 { 1835 msg = QString("Transcode %1")1836 .arg(StatusText(GetJobStatus(jobID)));1837 1838 details = QString("%1%2: (%3)")1839 .arg(program_info->title).arg(subtitle)1840 .arg(transcoderName);1841 1842 1835 if (status == JOB_FINISHED) 1843 1836 { 1844 1837 retry = false; … … void JobQueue::DoTranscodeThread(void) 1868 1861 .arg(transcoderName); 1869 1862 } 1870 1863 1871 VERBOSE(VB_GENERAL, LOC +1872 QString("%1 for %2%3: %4 => %5 (%6)")1873 .arg(msg).arg(program_info->title).arg(subtitle)1874 .arg(PrettyPrint(origfilesize))1875 .arg(PrettyPrint(filesize)).arg(transcoderName));1876 1877 1864 MythEvent me("RECORDING_LIST_CHANGE"); 1878 1865 gContext->dispatch(me); 1879 1866 1880 1867 program_info->SetTranscoded(TRANSCODING_COMPLETE); 1881 1868 } 1869 else 1870 { 1871 ChangeJobStatus(jobID, JOB_ERRORED, QString("Trancode failed " 1872 "with status: %1").arg(result)); 1873 details = QString("%1%2: (%3)") 1874 .arg(program_info->title).arg(subtitle) 1875 .arg(transcoderName); 1876 } 1882 1877 1878 msg = QString("Transcode %1").arg(StatusText(GetJobStatus(jobID))); 1879 VERBOSE(VB_GENERAL, LOC + msg + ": " + details); 1883 1880 gContext->LogEntry("transcode", LP_NOTICE, msg, details); 1884 1881 } 1885 1882 }