From 4a3f1fdfe1eb3743564adcee35d5513224339260 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Frings-F=C3=BCrst?= Date: Fri, 25 Nov 2016 04:10:33 +0100 Subject: New upstream version 0.25.1 --- plugins/shotwell-publishing/YouTubePublishing.vala | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'plugins/shotwell-publishing/YouTubePublishing.vala') diff --git a/plugins/shotwell-publishing/YouTubePublishing.vala b/plugins/shotwell-publishing/YouTubePublishing.vala index 48241bd..d7db9f8 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); - Soup.Buffer metadata_buffer = new Soup.Buffer(Soup.MemoryUse.COPY, metadata.data); + var metadata_buffer = new Soup.Buffer.take (metadata.data); message_parts.append_form_file("", "", "application/atom+xml", metadata_buffer); // attempt to read the binary video data from disk @@ -585,8 +585,7 @@ 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. - Soup.Buffer bindable_data = new Soup.Buffer(Soup.MemoryUse.COPY, - video_data.data[0:data_length]); + var bindable_data = new Soup.Buffer.take (video_data.data); message_parts.append_form_file("", publishable.get_serialized_file().get_path(), "video/mpeg", bindable_data); -- cgit v1.2.3