continuous play

Thiago Macieira thiago at kde.org
Mon Sep 16 19:34:05 BST 2013


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kde-multimedia/attachments/20130916/1655a3a6/attachment.sig>
-------------- next part --------------
_______________________________________________
kde-multimedia mailing list
kde-multimedia at kde.org
https://mail.kde.org/mailman/listinfo/kde-multimedia


More information about the kde-multimedia mailing list