[totem-pl-parser/wip/hadess/cancelled-return: 1/2] plparser: Fix retval when guard are triggered
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [totem-pl-parser/wip/hadess/cancelled-return: 1/2] plparser: Fix retval when guard are triggered
- Date: Mon, 20 Jun 2022 14:14:03 +0000 (UTC)
commit 28313b1d75676d6653c4ebff566d0425fe1053b4
Author: Bastien Nocera <hadess hadess net>
Date: Mon Jun 20 16:05:21 2022 +0200
plparser: Fix retval when guard are triggered
The function doesn't return TRUE/FALSE, but a TotemPlParserResult.
plparse/totem-pl-parser.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/plparse/totem-pl-parser.c b/plparse/totem-pl-parser.c
index cf8ef82..b853cb7 100644
--- a/plparse/totem-pl-parser.c
+++ b/plparse/totem-pl-parser.c
@@ -2409,8 +2409,8 @@ totem_pl_parser_parse_finish (TotemPlParser *parser, GAsyncResult *async_result,
{
GTask *task = G_TASK (async_result);
- g_return_val_if_fail (TOTEM_PL_IS_PARSER (parser), FALSE);
- g_return_val_if_fail (g_task_is_valid (async_result, parser), FALSE);
+ g_return_val_if_fail (TOTEM_PL_IS_PARSER (parser), TOTEM_PL_PARSER_RESULT_UNHANDLED);
+ g_return_val_if_fail (g_task_is_valid (async_result, parser), TOTEM_PL_PARSER_RESULT_UNHANDLED);
/* Propagate any errors which were caught and return the result; otherwise just return the result */
return g_task_propagate_int (task, error);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]