summaryrefslogtreecommitdiff
path: root/plugins/shotwell-publishing/YouTubePublishing.vala
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2017-01-21 19:19:04 +0100
committerJörg Frings-Fürst <debian@jff-webhosting.net>2017-01-21 19:19:04 +0100
commitf39ea21098340bd99c48669f152c9068046c2c99 (patch)
treed1166fce1a4a8c470dfaf364816f767678c4729e /plugins/shotwell-publishing/YouTubePublishing.vala
parentbc48a4cff815ed156b603c92e684779c317417ba (diff)
parenta7ff7c49085c320c1e0a2ffb66cc6d283c5acb8e (diff)
Merge tag 'upstream/0.25.3'
Upstream version 0.25.3
Diffstat (limited to 'plugins/shotwell-publishing/YouTubePublishing.vala')
-rw-r--r--plugins/shotwell-publishing/YouTubePublishing.vala5
1 files changed, 3 insertions, 2 deletions
diff --git a/plugins/shotwell-publishing/YouTubePublishing.vala b/plugins/shotwell-publishing/YouTubePublishing.vala
index d7db9f8..48241bd 100644
--- a/plugins/shotwell-publishing/YouTubePublishing.vala
+++ b/plugins/shotwell-publishing/YouTubePublishing.vala
@@ -565,7 +565,7 @@ internal class UploadTransaction : Publishing.RESTSupport.GooglePublisher.Authen
string metadata = METADATA_TEMPLATE.printf(Publishing.RESTSupport.decimal_entity_encode(title),
private_video, unlisted_video);
- var metadata_buffer = new Soup.Buffer.take (metadata.data);
+ Soup.Buffer metadata_buffer = new Soup.Buffer(Soup.MemoryUse.COPY, metadata.data);
message_parts.append_form_file("", "", "application/atom+xml", metadata_buffer);
// attempt to read the binary video data from disk
@@ -585,7 +585,8 @@ internal class UploadTransaction : Publishing.RESTSupport.GooglePublisher.Authen
// bind the binary video data read from disk into a Soup.Buffer object so that we
// can attach it to the multipart request, then actaully append the buffer
// to the multipart request. Then, set the MIME type for this part.
- var bindable_data = new Soup.Buffer.take (video_data.data);
+ Soup.Buffer bindable_data = new Soup.Buffer(Soup.MemoryUse.COPY,
+ video_data.data[0:data_length]);
message_parts.append_form_file("", publishable.get_serialized_file().get_path(),
"video/mpeg", bindable_data);