[mythtv] mythvideo

Matt Zimmerman mdz at debian.org
Sun Sep 21 21:37:50 EDT 2003


On Sun, Sep 21, 2003 at 08:29:26PM -0400, Michael J. Sherman wrote:

> 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/";
>      }

How about this instead?

http://doc.trolltech.com/3.0/qurl.html

-- 
 - mdz


More information about the mythtv-dev mailing list