Commit 5869e43a authored by Bastien Nocera's avatar Bastien Nocera

plparser: Pass GCancellable when calling g_file_replace()

parent 859a5aa3
......@@ -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;
......
......@@ -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;
......
......@@ -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;
......
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment