totem-pl-parser r236 - in trunk: . plparse
- From: hadess svn gnome org
- To: svn-commits-list gnome org
- Subject: totem-pl-parser r236 - in trunk: . plparse
- Date: Tue, 7 Oct 2008 13:57:36 +0000 (UTC)
Author: hadess
Date: Tue Oct 7 13:57:36 2008
New Revision: 236
URL: http://svn.gnome.org/viewvc/totem-pl-parser?rev=236&view=rev
Log:
2008-10-07 Bastien Nocera <hadess hadess net>
* plparse/totem-pl-parser.c (totem_pl_parser_parse_internal),
(totem_pl_parser_add_ignored_scheme): Fix scheme ignore function
we used to expect schemes in the form "cdda:" and now we expect
"cdda" (Closes: #554875)
Modified:
trunk/ChangeLog
trunk/plparse/totem-pl-parser.c
Modified: trunk/plparse/totem-pl-parser.c
==============================================================================
--- trunk/plparse/totem-pl-parser.c (original)
+++ trunk/plparse/totem-pl-parser.c Tue Oct 7 13:57:36 2008
@@ -1567,7 +1567,7 @@
return ret;
}
- if (totem_pl_parser_ignore_from_mimetype (parser, mimetype)) {
+ if (totem_pl_parser_ignore_from_mimetype (parser, mimetype) != FALSE) {
g_free (mimetype);
return TOTEM_PL_PARSER_RESULT_IGNORED;
}
@@ -1657,10 +1657,15 @@
totem_pl_parser_add_ignored_scheme (TotemPlParser *parser,
const char *scheme)
{
+ char *s;
+
g_return_if_fail (TOTEM_IS_PL_PARSER (parser));
+ s = g_strdup (scheme);
+ if (s[strlen (s) - 1] == ':')
+ s[strlen (s) - 1] = '\0';
parser->priv->ignore_schemes = g_list_prepend
- (parser->priv->ignore_schemes, g_strdup (scheme));
+ (parser->priv->ignore_schemes, s);
}
/**
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]