mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-20 00:31:13 +00:00
network/http-launch: Fix writing response if the write could not be finished in one rurun
This commit is contained in:
parent
e38e9ce609
commit
466d249647
1 changed files with 3 additions and 1 deletions
|
@ -76,8 +76,10 @@ write_bytes (Client * client, const gchar * data, guint len)
|
|||
/* TODO: We assume this never blocks */
|
||||
do {
|
||||
w = g_output_stream_write (client->ostream, data, len, NULL, &err);
|
||||
if (w > 0)
|
||||
if (w > 0) {
|
||||
len -= w;
|
||||
data += w;
|
||||
}
|
||||
} while (w > 0 && len > 0);
|
||||
|
||||
if (w <= 0) {
|
||||
|
|
Loading…
Reference in a new issue