[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-multimedia
Subject:    Re: continuous play
From:       Thiago Macieira <thiago () kde ! org>
Date:       2013-09-16 16:34:30
Message-ID: 3941984.CmgktB41mV () tjmaciei-mobl2
[Download RAW message or body]

[Attachment #2 (multipart/signed)]


On segunda-feira, 16 de setembro de 2013 13:52:40, Harald Sitter wrote:
> > next! >'\xe92.ogg'<
> >
> >     but what reaches phonon is something completely different:
> > PHONON-GST     New source:  QUrl( "é2.ogg" )
> > 0:00:02.125529426 15061 0x7f2fa4002c00 WARN                 filesrc
> > gstfilesrc.c:1141:gst_file_src_uri_set_uri:<source> Invalid URI
> > 'file://%C3%A92.ogg' for filesrc: The URI 'file://%C3%A92.ogg' is invalid
> > 0:00:02.167826528 15061 0x7f2fa4002c00 WARN                 gio_src
> > gstgiosrc.c:324:gst_gio_src_get_stream:<source> error: Could not open
> > location file://%C3%A92.ogg for reading: Operation not supported
> > 0:00:02.167953267 15061 0x7f2fa4002c00 WARN                 gio_src
> > gstgiosrc.c:324:gst_gio_src_get_stream:<source> error: Could not open
> > location file://%C3%A92.ogg for reading: Operation not supported
> ^ that is most likely because of python, or pyqt, or both. phonon
> always ever expects utf8 which seems not to be the case with your
> python application. In particular I seem to recall python2 not
> defaulting to unicode strings or something like that. perhaps using
> the MediaSource(QUrl) constructor works around that, but I wouldn't
> bet on it. Otherwise a web search surely would yield more information
> on unicode strings in python2.

Actually, the problem is in the C++ side.

A file called "\xe92.ogg" is NOT QUrl("é2.ogg").

There are two problems with that: first, that you forgot the "file:" part.

Second, an "é" in a URL is ALWAYS "%C3%A9", which corresponds to a file name 
"\xc3\xa92.ogg". There's no way to change that, not now, not ever, and any 
implementation that allows that is broken.

If you want to reach the file called "\xe92.ogg", you need to write "%E92.ogg".

-- 
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
   Software Architect - Intel Open Source Technology Center
      PGP/GPG: 0x6EF45358; fingerprint:
      E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358

["signature.asc" (application/pgp-signature)]

_______________________________________________
kde-multimedia mailing list
kde-multimedia@kde.org
https://mail.kde.org/mailman/listinfo/kde-multimedia


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic