summaryrefslogtreecommitdiffstats
path: root/src/kmplayerprocess.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/kmplayerprocess.cpp')
-rw-r--r--src/kmplayerprocess.cpp34
1 files changed, 17 insertions, 17 deletions
diff --git a/src/kmplayerprocess.cpp b/src/kmplayerprocess.cpp
index ec4fd31..de062f7 100644
--- a/src/kmplayerprocess.cpp
+++ b/src/kmplayerprocess.cpp
@@ -692,7 +692,7 @@ KDE_NO_EXPORT void MPlayer::processOutput (KProcess *, char * str, int slen) {
m_source->setLoading (int (m_cacheRegExp.cap(1).toDouble()));
}
} else if (out.startsWith ("ID_LENGTH")) {
- int pos = out.tqfind ('=');
+ int pos = out.find ('=');
if (pos > 0) {
int l = (int) out.mid (pos + 1).toDouble (&ok);
if (ok && l >= 0) {
@@ -710,35 +710,35 @@ KDE_NO_EXPORT void MPlayer::processOutput (KProcess *, char * str, int slen) {
kdDebug () << "Reference File " << endl;
m_tmpURL.truncate (0);
} else if (out.startsWith ("ID_VIDEO_WIDTH")) {
- int pos = out.tqfind ('=');
+ int pos = out.find ('=');
if (pos > 0) {
int w = out.mid (pos + 1).toInt ();
m_source->setDimensions (m_mrl, w, m_source->height ());
}
} else if (out.startsWith ("ID_VIDEO_HEIGHT")) {
- int pos = out.tqfind ('=');
+ int pos = out.find ('=');
if (pos > 0) {
int h = out.mid (pos + 1).toInt ();
m_source->setDimensions (m_mrl, m_source->width (), h);
}
} else if (out.startsWith ("ID_VIDEO_ASPECT")) {
- int pos = out.tqfind ('=');
+ int pos = out.find ('=');
if (pos > 0) {
bool ok;
TQString val = out.mid (pos + 1);
float a = val.toFloat (&ok);
if (!ok) {
- val.tqreplace (',', '.');
+ val.replace (',', '.');
a = val.toFloat (&ok);
}
if (ok && a > 0.001)
m_source->setAspect (m_mrl, a);
}
} else if (out.startsWith ("ID_AID_")) {
- int pos = out.tqfind ('_', 7);
+ int pos = out.find ('_', 7);
if (pos > 0) {
int id = out.mid (7, pos - 7).toInt ();
- pos = out.tqfind ('=', pos);
+ pos = out.find ('=', pos);
if (pos > 0) {
if (!alanglist_end) {
alanglist = new LangInfo (id, out.mid (pos + 1));
@@ -751,10 +751,10 @@ KDE_NO_EXPORT void MPlayer::processOutput (KProcess *, char * str, int slen) {
}
}
} else if (out.startsWith ("ID_SID_")) {
- int pos = out.tqfind ('_', 7);
+ int pos = out.find ('_', 7);
if (pos > 0) {
int id = out.mid (7, pos - 7).toInt ();
- pos = out.tqfind ('=', pos);
+ pos = out.find ('=', pos);
if (pos > 0) {
if (!slanglist_end) {
slanglist = new LangInfo (id, out.mid (pos + 1));
@@ -767,10 +767,10 @@ KDE_NO_EXPORT void MPlayer::processOutput (KProcess *, char * str, int slen) {
}
}
} else if (out.startsWith ("ICY Info")) {
- int p = out.tqfind ("StreamTitle=", 8);
+ int p = out.find ("StreamTitle=", 8);
if (p > -1) {
p += 12;
- int e = out.tqfind (';', p);
+ int e = out.find (';', p);
if (e > -1)
e -= p;
((PlayListNotify *)m_source)->setInfoMessage (out.mid (p, e));
@@ -1022,9 +1022,9 @@ bool MEncoder::deMediafiedPlay () {
if (!post090 && myurl.startsWith (TQString ("tv://")))
; // skip it
else if (!post090 && myurl.startsWith (TQString ("vcd://")))
- args += myurl.tqreplace (0, 6, TQString (" -vcd "));
+ args += myurl.replace (0, 6, TQString (" -vcd "));
else if (!post090 && myurl.startsWith (TQString ("dvd://")))
- args += myurl.tqreplace (0, 6, TQString (" -dvd "));
+ args += myurl.replace (0, 6, TQString (" -dvd "));
else
args += ' ' + KProcess::quote (TQString (TQFile::encodeName (myurl)));
}
@@ -1084,9 +1084,9 @@ bool MPlayerDumpstream::deMediafiedPlay () {
if (!post090 && myurl.startsWith (TQString ("tv://")))
; // skip it
else if (!post090 && myurl.startsWith (TQString ("vcd://")))
- args += myurl.tqreplace (0, 6, TQString (" -vcd "));
+ args += myurl.replace (0, 6, TQString (" -vcd "));
else if (!post090 && myurl.startsWith (TQString ("dvd://")))
- args += myurl.tqreplace (0, 6, TQString (" -dvd "));
+ args += myurl.replace (0, 6, TQString (" -dvd "));
else
args += ' ' + KProcess::quote (TQString (TQFile::encodeName (myurl)));
}
@@ -2281,7 +2281,7 @@ KDE_NO_EXPORT TQString NpPlayer::evaluateScript (const TQString & script) {
}
static int getStreamId (const TQString &path) {
- int p = path.tqfindRev (TQChar ('_'));
+ int p = path.findRev (TQChar ('_'));
if (p < 0) {
kdError() << "wrong object path " << path << endl;
return -1;
@@ -2329,7 +2329,7 @@ void NpPlayer::requestStream (const TQString &path, const TQString & url, const
KDE_NO_EXPORT void NpPlayer::destroyStream (const TQString &s) {
int sid = getStreamId (s);
- if (sid >= 0 && streams.tqcontains ((TQ_UINT32) sid)) {
+ if (sid >= 0 && streams.contains ((TQ_UINT32) sid)) {
NpStream *ns = streams[(TQ_UINT32) sid];
ns->close ();
if (!write_in_progress)