Fix remaining string format errors

pull/1/head
Timothy Pearson 13 years ago
parent d9ed8b3291
commit a8e98ad9ce

@ -143,7 +143,7 @@ void k9Menu::convertJpegToMpeg(const TQString &_imageJpg,const TQString &_imageM
if (!process->normalExit()) { if (!process->normalExit()) {
tqDebug("error converting jpeg to mpeg"); tqDebug("error converting jpeg to mpeg");
} }
tqDebug(process->debug().latin1()); tqDebug("%s", process->debug().latin1());
} }
void k9Menu::createAudio(const TQString & _audioFile) { void k9Menu::createAudio(const TQString & _audioFile) {

@ -257,7 +257,7 @@ void k9NewDVD::createMencoderCmd(TQString &_cmd,TQString &_chapters, k9AviFile *
*process << "-mpegopts" << "format=dvd" << "-vf" << "scale="+scale+",harddup" << "-srate" << "48000" << "-af" << "lavcresample=48000"; *process << "-mpegopts" << "format=dvd" << "-vf" << "scale="+scale+",harddup" << "-srate" << "48000" << "-af" << "lavcresample=48000";
*process << "-lavcopts" << TQString("vcodec=mpeg2video:vrc_buf_size=1835:vrc_maxrate=9800:vbitrate=%1:keyint=15:acodec=%3:abitrate=%2:aspect=16/9").arg(m_videoBitrate).arg(m_config->getPrefAudioBitrate()).arg(m_config->getPrefAudioFormat().lower()); *process << "-lavcopts" << TQString("vcodec=mpeg2video:vrc_buf_size=1835:vrc_maxrate=9800:vbitrate=%1:keyint=15:acodec=%3:abitrate=%2:aspect=16/9").arg(m_videoBitrate).arg(m_config->getPrefAudioBitrate()).arg(m_config->getPrefAudioFormat().lower());
*process << "-ofps" << fps << "-o" << fileName << "-ss" << t1 << "-endpos" << t2 << _aviFile->getFileName(); *process << "-ofps" << fps << "-o" << fileName << "-ss" << t1 << "-endpos" << t2 << _aviFile->getFileName();
tqDebug(process->debug()); tqDebug("%s", process->debug().ascii());
/* /*
if (!m_progress->execute()) { if (!m_progress->execute()) {
m_cancel=true; m_cancel=true;

@ -41,7 +41,7 @@ k9HalConnection::k9HalConnection(TQObject *parent, const char *name)
dbus_error_init( &error ); dbus_error_init( &error );
m_dbusConnect = dbus_bus_get( DBUS_BUS_SYSTEM, &error ); m_dbusConnect = dbus_bus_get( DBUS_BUS_SYSTEM, &error );
if( dbus_error_is_set(&error) ) { if( dbus_error_is_set(&error) ) {
tqDebug(TQString("Error connecting to DBUS : %1").arg(error.message)); tqDebug("%s", (TQString("Error connecting to DBUS : %1").arg(error.message)).ascii());
return; return;
} }

@ -95,7 +95,7 @@ void k9HalDevice::getDriveProperties() {
m_canReadDvd=(caps & LIBHAL_DRIVE_CDROM_CAPS_DVDROM)==LIBHAL_DRIVE_CDROM_CAPS_DVDROM; m_canReadDvd=(caps & LIBHAL_DRIVE_CDROM_CAPS_DVDROM)==LIBHAL_DRIVE_CDROM_CAPS_DVDROM;
m_canBurnDvd=(caps & LIBHAL_DRIVE_CDROM_CAPS_DVDR)==LIBHAL_DRIVE_CDROM_CAPS_DVDR; m_canBurnDvd=(caps & LIBHAL_DRIVE_CDROM_CAPS_DVDR)==LIBHAL_DRIVE_CDROM_CAPS_DVDR;
m_model=TQString(libhal_drive_get_model(drive)); m_model=TQString(libhal_drive_get_model(drive));
// tqDebug(TQString("canReadDvd:%1 canBurnDvd:%2 model:%3").arg(m_canReadDvd).arg(m_canBurnDvd).arg(m_model)); // tqDebug("%s", (TQString("canReadDvd:%1 canBurnDvd:%2 model:%3").arg(m_canReadDvd).arg(m_canBurnDvd).arg(m_model)).ascii());
libhal_drive_free(drive); libhal_drive_free(drive);

@ -368,7 +368,7 @@ int k9vamps::check_video_packet (uchar *ptr) {
if (ptr [7]) { if (ptr [7]) {
if ((ptr [7] & 0xc0) != 0xc0) if ((ptr [7] & 0xc0) != 0xc0)
tqDebug (TQString("First video packet in sequence starting at %1 misses PTS or DTS, flags=%2").arg(rtell (ptr)).arg(ptr [7])); tqDebug ("%s", (TQString("First video packet in sequence starting at %1 misses PTS or DTS, flags=%2").arg(rtell (ptr)).arg(ptr [7])).ascii());
else { else {
sequence_header_code = (uint32_t) (ptr [6 + 3 + ptr [8] + 0]) << 24; sequence_header_code = (uint32_t) (ptr [6 + 3 + ptr [8] + 0]) << 24;
sequence_header_code |= (uint32_t) (ptr [6 + 3 + ptr [8] + 1]) << 16; sequence_header_code |= (uint32_t) (ptr [6 + 3 + ptr [8] + 1]) << 16;

@ -298,7 +298,7 @@ double k9CellCopyList::getMinFactor(bool _withMenus) {
double minFactor=(fforced-m_frcinbytes) /(MaxSize- (totalSize +m_outbytes) - m_frcoutbytes) ; double minFactor=(fforced-m_frcinbytes) /(MaxSize- (totalSize +m_outbytes) - m_frcoutbytes) ;
tqDebug("%s", (TQString("minfactor(%1)=(fforced(%2) -m_frinbytes(%3))/(MacSize(%4)-totalSize(%5)-m_outbytes(%6) - m_frcoutbytes(%7))").arg(minFactor).arg(fforced).arg(m_frcinbytes).arg(MaxSize).arg(totalSize).arg(m_outbytes).arg(m_frcoutbytes)).ascii()); tqDebug("%s", (TQString("minfactor(%1)=(fforced(%2) -m_frinbytes(%3))/(MacSize(%4)-totalSize(%5)-m_outbytes(%6) - m_frcoutbytes(%7))").arg(minFactor).arg(fforced).arg(m_frcinbytes).arg(MaxSize).arg(totalSize).arg(m_outbytes).arg(m_frcoutbytes)).ascii());
if (minFactor<1) if (minFactor<1)
minFactor=1; minFactor=1;
return minFactor; return minFactor;
@ -347,7 +347,7 @@ double k9CellCopyList::getfactor(bool _withMenus,bool _streams) {
if (dvdSize2 <0) { if (dvdSize2 <0) {
factor=2.5; factor=2.5;
//tqDebug(TQString("dvdSize (%1)- _outbytes(%2) - fforcedsh(%3)=%4").arg(dvdSize).arg(m_outbytes).arg(fforcedsh).arg(dvdSize2)); //tqDebug("%s", (TQString("dvdSize (%1)- _outbytes(%2) - fforcedsh(%3)=%4").arg(dvdSize).arg(m_outbytes).arg(fforcedsh).arg(dvdSize2).ascii()));
} }
else { else {
factor=(totalSize +menuSize - fforced -m_inbytes)/ dvdSize2 ; factor=(totalSize +menuSize - fforced -m_inbytes)/ dvdSize2 ;
@ -361,7 +361,7 @@ double k9CellCopyList::getfactor(bool _withMenus,bool _streams) {
uint64_t i=m_inbytes; uint64_t i=m_inbytes;
//if (o==0) //if (o==0)
// o=1; // o=1;
//tqDebug(TQString("factor : %1 realise : %2").arg(factor).arg((double)i/(double)o)); //tqDebug("%s", (TQString("factor : %1 realise : %2").arg(factor).arg((double)i/(double)o).ascii()));
if (factor<=1) if (factor<=1)
factor=1; factor=1;

@ -505,7 +505,7 @@ void k9DVDAuthor::DVDAuthorStderr(KProcess *proc, char *buffer, int buflen ) {
// m_copied+=totalBytes - m_lastPos; // m_copied+=totalBytes - m_lastPos;
m_copied=totalBytes; m_copied=totalBytes;
m_lastPos=totalBytes; m_lastPos=totalBytes;
//tqDebug(TQString("copied : %1 totalSize : %2").arg(m_copied).arg(m_totalSize*512)); //tqDebug("%s", (TQString("copied : %1 totalSize : %2").arg(m_copied).arg(m_totalSize*512).ascii());
m_percent=(float)m_copied / (float)(m_totalSize/DVD_VIDEO_LB_LEN ); m_percent=(float)m_copied / (float)(m_totalSize/DVD_VIDEO_LB_LEN );
@ -526,7 +526,7 @@ void k9DVDAuthor::DVDAuthorStderr(KProcess *proc, char *buffer, int buflen ) {
} }
/* else { /* else {
if (!m_stderr.startsWith("libdvdread") && m_stderr.startsWith("libdvdnav")) if (!m_stderr.startsWith("libdvdread") && m_stderr.startsWith("libdvdnav"))
tqDebug(m_stderr); tqDebug("%s", m_stderr.ascii());
} }
*/ */
int end; int end;

@ -870,7 +870,7 @@ void k9Ifo2::checkBuffer(TQString lib,uchar* _buffer) {
if (memcmp(bufCopy,_buffer,bufCopySize)!=0) { if (memcmp(bufCopy,_buffer,bufCopySize)!=0) {
TQString c; TQString c;
c="Buffer de sortie altéré: " +lib; c="Buffer de sortie altéré: " +lib;
tqDebug(c.latin1()); tqDebug("%s", c.latin1());
} }
} }

@ -392,7 +392,7 @@ void k9MP4Enc::execute ( k9DVDTitle *_title )
TQCString str=* ( m_process->args().at ( i ) ); TQCString str=* ( m_process->args().at ( i ) );
s +=TQString ( str ) +" "; s +=TQString ( str ) +" ";
} }
tqDebug ( s ); tqDebug ( "%s", s.ascii() );
time->start(); time->start();
m_timer3.start(); m_timer3.start();
connect ( m_process, TQT_SIGNAL ( receivedStdout ( KProcess *, char *, int ) ),this, TQT_SLOT ( getStdout ( KProcess *, char *, int ) ) ); connect ( m_process, TQT_SIGNAL ( receivedStdout ( KProcess *, char *, int ) ),this, TQT_SLOT ( getStdout ( KProcess *, char *, int ) ) );

Loading…
Cancel
Save