Fix use of potentially uninitialized values

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit f083c21276)
r14.0.x
Slávek Banko 8 years ago
parent f060539d8f
commit bad078e7b6

@ -74,7 +74,7 @@ void k9NewTitle::bAddClicked() {
m_k9Import->getRoot()->listView()->setColumnWidthMode(0,TQListView::Maximum); m_k9Import->getRoot()->listView()->setColumnWidthMode(0,TQListView::Maximum);
item->setText(1,t.addSecs(fileInfo.getDuration()).toString("hh:mm:ss")); item->setText(1,t.addSecs(fileInfo.getDuration()).toString("hh:mm:ss"));
double increment; double increment = 5*60*60;
int maxCh; int maxCh;
if (rbLength->isOn()) { if (rbLength->isOn()) {
TQTime t; TQTime t;

@ -1042,7 +1042,7 @@ TQString &k9DVD::getFormat() {
} }
int k9DVD::getVampsID(int type) { int k9DVD::getVampsID(int type) {
int abase; int abase = 0;
if (type >= 0x80 && type <= 0x87) { if (type >= 0x80 && type <= 0x87) {
// AC3 audio // AC3 audio
abase = 0x80; abase = 0x80;

@ -760,7 +760,7 @@ uint32_t k9DVDBackup::copyVobu(k9DVDFile *_fileHandle,uint32_t _startSector,k9V
m_cellCopyList->addInbytes( DVD_VIDEO_LB_LEN); m_cellCopyList->addInbytes( DVD_VIDEO_LB_LEN);
else else
m_cellCopyList->addFrcinbytes(DVD_VIDEO_LB_LEN); m_cellCopyList->addFrcinbytes(DVD_VIDEO_LB_LEN);
uint32_t end; uint32_t end = 0;
if (badNavPack) { if (badNavPack) {
setDummyPack(buf); setDummyPack(buf);

@ -239,9 +239,8 @@ void k9play::play() {
m_startSector=status.sector; m_startSector=status.sector;
} }
KTempFile *bufferFile = 0;
KTempFile *bufferFile;
if (m_useCache) { if (m_useCache) {
bufferFile=new KTempFile(locateLocal("tmp", "k9copy/k9p"), ""); bufferFile=new KTempFile(locateLocal("tmp", "k9copy/k9p"), "");
m_output=bufferFile->file(); m_output=bufferFile->file();

Loading…
Cancel
Save