checksumutils: Support splicing stream to arbitrary checksum type

This will be used later by the metalink code; you can splice with a
NULL output stream to an arbitrary GChecksum instead of just a SHA256
one.
This commit is contained in:
Colin Walters 2015-01-14 22:01:54 -05:00
parent 92c338de74
commit 9b6b352181

View File

@ -92,7 +92,7 @@ ot_gio_splice_update_checksum (GOutputStream *out,
}
while (bytes_read > 0);
}
else
else if (out != NULL)
{
if (g_output_stream_splice (out, in, 0, cancellable, error) < 0)
goto out;