[grilo-plugins] optical-media: Handle cancelled retvals like errors
- From: Juan A. Suarez Romero <jasuarez src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [grilo-plugins] optical-media: Handle cancelled retvals like errors
- Date: Thu, 6 Feb 2014 13:48:16 +0000 (UTC)
commit 2756ec1f136b23b92b7c3a70d0989c1226314f58
Author: Bastien Nocera <hadess hadess net>
Date: Mon Jan 20 17:05:08 2014 +0100
optical-media: Handle cancelled retvals like errors
https://bugzilla.gnome.org/show_bug.cgi?id=722629
src/optical-media/grl-optical-media.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/src/optical-media/grl-optical-media.c b/src/optical-media/grl-optical-media.c
index b4a6ff7..20a20ce 100644
--- a/src/optical-media/grl-optical-media.c
+++ b/src/optical-media/grl-optical-media.c
@@ -387,10 +387,11 @@ parsed_finished (TotemPlParser *pl, GAsyncResult *result, BrowseData *data)
data->bs->user_data,
NULL);
} else {
- if (retval == TOTEM_PL_PARSER_RESULT_ERROR) {
+ if (retval == TOTEM_PL_PARSER_RESULT_ERROR ||
+ retval == TOTEM_PL_PARSER_RESULT_CANCELLED) {
GRL_WARNING ("Failed to parse '%s': %s",
grl_media_get_id (data->media),
- error->message);
+ error ? error->message : "No reason");
g_error_free (error);
}
g_object_unref (data->media);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]