diff options
author | Bastien Nocera <hadess@hadess.net> | 2020-02-27 16:56:14 +0100 |
---|---|---|
committer | Bastien Nocera <hadess@hadess.net> | 2020-02-27 18:53:16 +0100 |
commit | 26b8e7fb6913ea44d0caccb4a6c164aadb5e525c (patch) | |
tree | 221b82949d328da3cbefd263ad515a6c82043b15 /plparse/totem-pl-parser-pla.c | |
parent | 5869e43a16b4fad25e6af3ee86c6bd29abf26be5 (diff) | |
download | totem-pl-parser-26b8e7fb6913ea44d0caccb4a6c164aadb5e525c.tar.gz |
plparser: Make totem_pl_parser_write_buffer() cancellable
Diffstat (limited to 'plparse/totem-pl-parser-pla.c')
-rw-r--r-- | plparse/totem-pl-parser-pla.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plparse/totem-pl-parser-pla.c b/plparse/totem-pl-parser-pla.c index 56b44b3..e78efae 100644 --- a/plparse/totem-pl-parser-pla.c +++ b/plparse/totem-pl-parser-pla.c @@ -72,7 +72,7 @@ totem_pl_parser_save_pla (TotemPlParser *parser, * the 'quick list' name there. */ strncpy (buffer + TITLE_OFFSET, title, TITLE_SIZE); - if (totem_pl_parser_write_buffer (G_OUTPUT_STREAM (stream), buffer, RECORD_SIZE, error) == FALSE) + if (totem_pl_parser_write_buffer (G_OUTPUT_STREAM (stream), buffer, RECORD_SIZE, cancellable, error) == FALSE) { DEBUG(output, g_print ("Couldn't write header block for '%s'", uri)); g_free (buffer); @@ -150,7 +150,7 @@ totem_pl_parser_save_pla (TotemPlParser *parser, memcpy (buffer + PATH_OFFSET, converted, written); g_free (converted); - if (totem_pl_parser_write_buffer (G_OUTPUT_STREAM (stream), buffer, RECORD_SIZE, error) == FALSE) + if (totem_pl_parser_write_buffer (G_OUTPUT_STREAM (stream), buffer, RECORD_SIZE, cancellable, error) == FALSE) { DEBUG1(g_print ("Couldn't write entry %d to the file\n", i)); ret = FALSE; |