Playbin and DVB

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Playbin and DVB

Russel Winder
Playbin appears to want to warn about spaces in URIs destined for the
DVB elements. However the spaces are necessary when used!

This is not a big deal really, just an annoyance. Is it worthy of a bug
report?

--
Russel.
=============================================================================
Dr Russel Winder      t: +44 20 7585 2200   voip: sip:[hidden email]
41 Buckmaster Road    m: +44 7770 465 077   xmpp: [hidden email]
London SW11 1EN, UK   w: www.russel.org.uk  skype: russel_winder
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

signature.asc (188 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Playbin and DVB

Sebastian Dröge-3
On Sa, 2016-03-19 at 09:00 +0000, Russel Winder wrote:
> Playbin appears to want to warn about spaces in URIs destined for the
> DVB elements. However the spaces are necessary when used!
>
> This is not a big deal really, just an annoyance. Is it worthy of a
> bug report?

Spaces are not valid in URIs, you have to escape them. I.e. replace
spaces with %20, other special characters with other things.

Check the GstUri API to make this work. Of course it might also be that
dvbsrc on the other side does not properly handle escaped URIs, so
might also need some improvements there.

--
Sebastian Dröge, Centricular Ltd · http://www.centricular.com


_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

signature.asc (968 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Playbin and DVB

Russel Winder
On Sat, 2016-03-19 at 11:28 +0200, Sebastian Dröge wrote:
> […]
> Spaces are not valid in URIs, you have to escape them. I.e. replace
> spaces with %20, other special characters with other things.
[…]

I suspect then that the broken status quo is better than fixing
anything: good user experience should allow users to enter spaces and
see spaces at all times through the system! It actually works as is so
clearly the DVB elements are happy with spaces – they have to be as
that is what comes down the line. Having to convert from space to %20
and back again all the time seems like a silliness. Of course the
standards people will say "but you must do it to be standards
compliant".

I shall rant elsewhere :-)

--
Russel.
=============================================================================
Dr Russel Winder      t: +44 20 7585 2200   voip: sip:[hidden email]
41 Buckmaster Road    m: +44 7770 465 077   xmpp: [hidden email]
London SW11 1EN, UK   w: www.russel.org.uk  skype: russel_winder
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

signature.asc (188 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Playbin and DVB

Sebastian Dröge-3
On Sa, 2016-03-19 at 10:01 +0000, Russel Winder wrote:

> On Sat, 2016-03-19 at 11:28 +0200, Sebastian Dröge wrote:
> >
> > […]
> > Spaces are not valid in URIs, you have to escape them. I.e. replace
> > spaces with %20, other special characters with other things.
> […]
>
> I suspect then that the broken status quo is better than fixing
> anything: good user experience should allow users to enter spaces and
> see spaces at all times through the system!
Yes, that's why you never show a real URI to the user but instead some
kind of beautified URI. Look at what Firefox for example does. It
doesn't even show you the URI scheme anymore, and transparently
converts special characters between human-readable and percent-encoded.

>  It actually works as is so clearly the DVB elements are happy with spaces – they have to be as
> that is what comes down the line. Having to convert from space to %20
> and back again all the time seems like a silliness. Of course the
> standards people will say "but you must do it to be standards
> compliant".

The problem is if you don't do that you get problems with code that
generically handles URI and does not know about your special DVB URIs.

Reported here in case someone feels like fixing this:
https://bugzilla.gnome.org/show_bug.cgi?id=763910

--
Sebastian Dröge, Centricular Ltd · http://www.centricular.com


_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

signature.asc (968 bytes) Download Attachment