[gst-devel] URI managing

Benjamin Otte in7y118 at public.uni-hamburg.de
Fri Nov 14 04:09:02 CET 2003


On Fri, 14 Nov 2003, Thomas Vander Stichele wrote:

> I'm not sure why we want to overload the already complex pipeline syntax
> (from the last example I'm guessing you treat "anything containing /" as
> files that need to get plugins thrown at them)
>
It's anything that is not a mime description or an element name currently.
The official (and the only supported) way is specifying a URI, which is
[:alpha:][:alnum:]*"://"... which doesn't clash with anything in the
pipeline syntax.

> Personally, I feel that parsing of URI's ought to be done by something
> inside the player or a helper lib, not in the launch parsing.  The only
> reason gst-player uses gnomevfs at this point is because we don't have
> anything else anyway :) So when the day comes that someone writes an
> mms:// plugin, I'm sure we can come up with a decent way of making sure
> the player understands it.  I'm not convinced though that overloading
> the syntax of launch pipelines is the way to do that...
>
Yeah, as if my idea was to make the player use pipeline parsing...
If you had looked at the code you would have figured out that the way to
do this is not gst_parse_launch ("/path/to/file"), but
gst_element_make_from_uri (GST_URI_SRC, "/path/to/file", NULL).

The addition for pipeline parsing is purely an addition to pipeline
parsing and was done because it eases use for 90% of the cases, because in
90% of the cases you want your pipeline to do something with a URI.


Benjamin





More information about the gstreamer-devel mailing list