[totem-pl-parser/wip/hadess/async-save: 6/10] plparser: Pass GCancellable when calling g_file_replace()



commit 5869e43a16b4fad25e6af3ee86c6bd29abf26be5
Author: Bastien Nocera <hadess hadess net>
Date:   Thu Feb 27 16:55:01 2020 +0100

    plparser: Pass GCancellable when calling g_file_replace()

 plparse/totem-pl-parser-lines.c | 2 +-
 plparse/totem-pl-parser-pla.c   | 2 +-
 plparse/totem-pl-parser-pls.c   | 2 +-
 plparse/totem-pl-parser-xspf.c  | 2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/plparse/totem-pl-parser-lines.c b/plparse/totem-pl-parser-lines.c
index 5791641..7bbf586 100644
--- a/plparse/totem-pl-parser-lines.c
+++ b/plparse/totem-pl-parser-lines.c
@@ -93,7 +93,7 @@ totem_pl_parser_save_m3u (TotemPlParser    *parser,
        char *buf;
        const char *cr;
 
-       stream = g_file_replace (output, NULL, FALSE, G_FILE_CREATE_NONE, NULL, error);
+       stream = g_file_replace (output, NULL, FALSE, G_FILE_CREATE_NONE, cancellable, error);
        if (stream == NULL)
                return FALSE;
 
diff --git a/plparse/totem-pl-parser-pla.c b/plparse/totem-pl-parser-pla.c
index 1275b37..56b44b3 100644
--- a/plparse/totem-pl-parser-pla.c
+++ b/plparse/totem-pl-parser-pla.c
@@ -57,7 +57,7 @@ totem_pl_parser_save_pla (TotemPlParser    *parser,
        char *buffer;
        gboolean valid, ret;
 
-       stream = g_file_replace (output, NULL, FALSE, G_FILE_CREATE_NONE, NULL, error);
+       stream = g_file_replace (output, NULL, FALSE, G_FILE_CREATE_NONE, cancellable, error);
        if (stream == NULL)
                return FALSE;
 
diff --git a/plparse/totem-pl-parser-pls.c b/plparse/totem-pl-parser-pls.c
index a6f25be..742be25 100644
--- a/plparse/totem-pl-parser-pls.c
+++ b/plparse/totem-pl-parser-pls.c
@@ -51,7 +51,7 @@ totem_pl_parser_save_pls (TotemPlParser    *parser,
 
        num_entries = totem_pl_parser_num_entries (parser, playlist);
 
-       stream = g_file_replace (output, NULL, FALSE, G_FILE_CREATE_NONE, NULL, error);
+       stream = g_file_replace (output, NULL, FALSE, G_FILE_CREATE_NONE, cancellable, error);
        if (stream == NULL)
                return FALSE;
 
diff --git a/plparse/totem-pl-parser-xspf.c b/plparse/totem-pl-parser-xspf.c
index 7cfe535..bb4c722 100644
--- a/plparse/totem-pl-parser-xspf.c
+++ b/plparse/totem-pl-parser-xspf.c
@@ -108,7 +108,7 @@ totem_pl_parser_save_xspf (TotemPlParser    *parser,
        char *buf;
        gboolean valid, success;
 
-       stream = g_file_replace (output, NULL, FALSE, G_FILE_CREATE_NONE, NULL, error);
+       stream = g_file_replace (output, NULL, FALSE, G_FILE_CREATE_NONE, cancellable, error);
        if (stream == NULL)
                return FALSE;
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]