splitfilesrc: small uri handler fixup and some more docs

Get URI location using gst_uri_get_location(), so any
escaped bits get unescaped.

https://bugzilla.gnome.org/show_bug.cgi?id=609049
This commit is contained in:
Tim-Philipp Müller 2012-06-16 23:29:41 +01:00
parent 1d659d8e41
commit 3b94e44571

View file

@ -30,19 +30,18 @@
* directories). The results will be sorted. * directories). The results will be sorted.
* *
* <refsect2> * <refsect2>
* <title>Example launch line</title> * <title>Example launch lines</title>
* |[ * |[
* gst-launch splitfilesrc location="/path/to/part-*.mpg" ! decodebin ! ... \ * gst-launch splitfilesrc location="/path/to/part-*.mpg" ! decodebin ! ...
* ]| Plays the different parts as if they were one single MPEG file. * ]| Plays the different parts as if they were one single MPEG file.
* |[
* gst-launch playbin2 uri="splitfile://path/to/foo.avi.*"
* ]| Plays the different parts as if they were one single AVI file.
* </refsect2> * </refsect2>
* *
* Since: 0.10.31 * Since: 0.10.31
*/ */
/* TODO:
* - implement splitfile:// URI handler?
*/
#ifdef HAVE_CONFIG_H #ifdef HAVE_CONFIG_H
# include "config.h" # include "config.h"
#endif #endif
@ -194,7 +193,7 @@ gst_split_file_src_set_location (GstSplitFileSrc * src, const char *location)
g_free (src->location); g_free (src->location);
if (location != NULL && g_str_has_prefix (location, "splitfile://")) if (location != NULL && g_str_has_prefix (location, "splitfile://"))
src->location = g_strdup (location + strlen ("splitfile://")); src->location = gst_uri_get_location (location);
else else
src->location = g_strdup (location); src->location = g_strdup (location);
#ifdef G_OS_WIN32 #ifdef G_OS_WIN32