summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Nocera <hadess@hadess.net>2020-02-27 16:55:01 +0100
committerBastien Nocera <hadess@hadess.net>2020-02-27 18:53:16 +0100
commit5869e43a16b4fad25e6af3ee86c6bd29abf26be5 (patch)
tree804bc7e61e22972828f4d0b96ac5fbf53c644c51
parent859a5aa3c86bfcaa061ac0486bfd04a7020056a3 (diff)
downloadtotem-pl-parser-5869e43a16b4fad25e6af3ee86c6bd29abf26be5.tar.gz
plparser: Pass GCancellable when calling g_file_replace()
-rw-r--r--plparse/totem-pl-parser-lines.c2
-rw-r--r--plparse/totem-pl-parser-pla.c2
-rw-r--r--plparse/totem-pl-parser-pls.c2
-rw-r--r--plparse/totem-pl-parser-xspf.c2
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;