From 83efdb4fcb47ebaa2c0e0c82eedf4452e95e4276 Mon Sep 17 00:00:00 2001 From: Guenter Bartsch Date: Sun, 27 Oct 2002 22:48:57 +0000 Subject: file plugin should handle file:// - type uris now, '#' is used as subtitle delimiter CVS patchset: 3053 CVS date: 2002/10/27 22:48:57 --- src/input/input_file.c | 35 +++++++++++++++++++++++++++++++---- 1 file changed, 31 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/input/input_file.c b/src/input/input_file.c index 66d028ad3..7aea2fa75 100644 --- a/src/input/input_file.c +++ b/src/input/input_file.c @@ -17,7 +17,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * - * $Id: input_file.c,v 1.64 2002/10/18 04:04:10 miguelfreitas Exp $ + * $Id: input_file.c,v 1.65 2002/10/27 22:48:57 guenter Exp $ */ #ifdef HAVE_CONFIG_H @@ -234,6 +234,33 @@ static void file_plugin_dispose (input_plugin_t *this_gen ) { free (this); } +static char *decode_uri (char *uri) { + + int len = strlen (uri); + int i; + + for (i=0; i