summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Nocera <hadess@hadess.net>2010-09-04 01:28:54 +0100
committerBastien Nocera <hadess@hadess.net>2010-09-04 01:31:58 +0100
commit3b592214b46f8062c18b238aee15ac8fe20c9ac1 (patch)
treedc3364bc9388e1e65d4f7587e86dbd00b5650ca1
parent4bcacd4331945c4af24584daf901933f73bd8c5b (diff)
downloadtotem-3b592214b46f8062c18b238aee15ac8fe20c9ac1.tar.gz
Simplify unsupported schemes avoidance in chapters
-rw-r--r--src/plugins/chapters/totem-chapters.c4
-rw-r--r--src/plugins/chapters/totem-cmml-parser.c3
2 files changed, 3 insertions, 4 deletions
diff --git a/src/plugins/chapters/totem-chapters.c b/src/plugins/chapters/totem-chapters.c
index d2176e5a6..f1bf8b382 100644
--- a/src/plugins/chapters/totem-chapters.c
+++ b/src/plugins/chapters/totem-chapters.c
@@ -400,9 +400,7 @@ totem_file_opened_async_cb (TotemObject *totem,
g_return_if_fail (TOTEM_IS_CHAPTERS_PLUGIN (plugin));
g_return_if_fail (uri != NULL);
- if (g_str_has_prefix (uri, "http") != FALSE ||
- g_str_has_prefix (uri, "rtsp") != FALSE ||
- g_str_has_prefix (uri, "rtmp") != FALSE)
+ if (g_str_has_prefix (uri, "http") != FALSE)
return;
cmml_file = totem_change_file_extension (uri, "cmml");
diff --git a/src/plugins/chapters/totem-cmml-parser.c b/src/plugins/chapters/totem-cmml-parser.c
index d8eea2775..292592841 100644
--- a/src/plugins/chapters/totem-cmml-parser.c
+++ b/src/plugins/chapters/totem-cmml-parser.c
@@ -536,7 +536,8 @@ totem_cmml_read_file_result (GObject *source_object,
if (G_UNLIKELY (error != NULL)) {
g_warning ("chapters: failed to load CMML file %s: %s", data->file, error->message);
- if (g_error_matches (error, g_io_error_quark(), G_IO_ERROR_NOT_FOUND)) {
+ if (g_error_matches (error, G_IO_ERROR, G_IO_ERROR_NOT_FOUND) ||
+ g_error_matches (error, G_IO_ERROR, G_IO_ERROR_NOT_SUPPORTED)) {
/* it's ok if file doesn't exist */
data->successful = TRUE;
data->is_exists = FALSE;