Comment 15 for bug 1449790

Revision history for this message
Jim Hodapp (jhodapp) wrote : Re: [Bug 1449790] Re: Fails to play a file with a # (hash symbol) in the path

media-hub doesn't do a thing to the URI. media::Track::UriType is just a
typedef for std::string. So that's why I'm recommending that you first know
what URI encodings will work for GStreamer via gst-launch-1.0 because then
you can be sure that you are passing the right thing to media-hub. If at
that point it still doesn't work, then perhaps something is affecting it
somewhere on its way down to playbin.

On Sun, Aug 16, 2015 at 3:38 PM, Neil McPhail <email address hidden> wrote:

> Yes, I've played with the various option for that function. I don't
> think any of them affect # symbols anyway, but coding the replace by
> hand ensures the hash symbol is replaced at the point
> "m_hubPlayerSession->open_uri(uri);" is called.
>
> It still doesn't work.
>
> So something either happens to the std::string which is used to make the
> "const media::Track::UriType" in the constructor, or the uri is re-
> mangled somewhere further downstream. Chasing the code further is beyond
> my skill, as the media-hub code gets into proper C++ territory and I
> only really know C.
>
> Any help appreciated.
>
> --
> You received this bug notification because you are a member of Canonical
> Phone Foundations, which is a bug assignee.
> https://bugs.launchpad.net/bugs/1449790
>
> Title:
> Fails to play a file with a # (hash symbol) in the path
>
> Status in Canonical System Image:
> Confirmed
> Status in Media Hub:
> Triaged
>
> Bug description:
> Playing a song from the music app will fail if the path contains a #
> symbol. The failure appears to be at the media-hub level.
>
> Example: Try to play track under "Music/Lots of #1
> hits/annoying_hit.mp3"
>
> What should happen: Song should play
>
> What actually happens: Song info loads in music player screen but
> track does not play and duration is set to zero.
>
>
> This bug has been confirmed by ahayzen on #ubuntu-touch who submitted
> this example log: http://pastebin.ubuntu.com/10931522/
>
> The file plays normally if the # is removed from the path.
>
> To manage notifications about this bug go to:
>
> https://bugs.launchpad.net/canonical-devices-system-image/+bug/1449790/+subscriptions
>