summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2023-04-23 22:45:35 +0200
committerCarl Hetherington <cth@carlh.net>2023-04-23 22:45:42 +0200
commitd7abedac1b4ff6564f656fcc99ea222bfa6901a2 (patch)
tree8bc5f80aa67a55a3287a30e66dcec9b20867df08 /src/lib
parentdb491c0c497be98c0d5c73822b22f0c65ba9590e (diff)
Fix length()/bytes() mismatch on XML string.
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/dcp_video.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/dcp_video.cc b/src/lib/dcp_video.cc
index 5879d6be6..0255588c6 100644
--- a/src/lib/dcp_video.cc
+++ b/src/lib/dcp_video.cc
@@ -229,7 +229,7 @@ DCPVideo::encode_remotely (EncodeServerDescription serv, int timeout) const
/* Send XML metadata */
auto xml = doc.write_to_string ("UTF-8");
- socket->write (xml.length() + 1);
+ socket->write(xml.bytes() + 1);
socket->write ((uint8_t *) xml.c_str(), xml.bytes() + 1);
/* Send binary data */