[mythtv] mythvideo

Michael J. Sherman msherman at dsbox.com
Sun Sep 21 21:29:26 EDT 2003


Hi,

I was trying to compile the latest CVS of mythvideo and got an error in 
videomanager.cpp at line 468.  This is because of code that assumes QT 
greater than 3.0.  I had to make the following change to get it to 
compile.  The QString::replace method changed in version 3.1.  Just FYI.

Index: videomanager.cpp
===================================================================
RCS file: /var/lib/mythcvs/mythvideo/mythvideo/videomanager.cpp,v
retrieving revision 1.18
diff -u -r1.18 videomanager.cpp
--- videomanager.cpp    7 Sep 2003 21:16:14 -0000       1.18
+++ videomanager.cpp    22 Sep 2003 00:14:57 -0000
@@ -468,7 +468,10 @@
         //cout << "Imp found: " << filename << endl;

         host = parseData(impsite, "//", "/");
-       path = impsite.replace("http://" + host, "");
+       int pos = impsite.find("http://" + host);
+       int len = ("http://" + host).length();
+       path = impsite.remove(pos,len);
+       //path = impsite.replace("http://" + host, "");
         path = path.left(impsite.findRev("/") + 1) + "posters/";
      }

-- 
Michael J. Sherman | msherman at stealthboy.com
"There are 10 kinds of people in this world; those who understand
binary, and those who don't."



More information about the mythtv-dev mailing list