From 0dde90a99e67f5dfb0b04e04e8404dffa1fe1060 Mon Sep 17 00:00:00 2001 From: Michael Roitzsch Date: Thu, 31 Oct 2002 17:00:44 +0000 Subject: adapt input plugins to new MRL syntax (mostly turning :// into :/) CVS patchset: 3113 CVS date: 2002/10/31 17:00:44 --- src/input/input_file.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src/input/input_file.c') diff --git a/src/input/input_file.c b/src/input/input_file.c index 7aea2fa75..30e44c2a2 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.65 2002/10/27 22:48:57 guenter Exp $ + * $Id: input_file.c,v 1.66 2002/10/31 17:00:49 mroi Exp $ */ #ifdef HAVE_CONFIG_H @@ -271,12 +271,13 @@ static input_plugin_t *open_plugin (input_class_t *cls_gen, xine_stream_t *strea char *filename, *subtitle; int fh; - if (!strncasecmp (mrl, "file://", 7)) - filename = decode_uri (&mrl[7]); + if (!strncasecmp (mrl, "file:", 5)) + filename = decode_uri (&mrl[5]); else filename = mrl; - subtitle = strrchr (filename, '#'); + /* FIXME: find a better solution (multiple streams) for text subtitles */ + subtitle = strrchr (filename, '?'); if (subtitle) { *subtitle = 0; subtitle++; -- cgit v1.2.3