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:
parent
92c338de74
commit
9b6b352181
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue