projects
/
dcpomatic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
db491c0
)
Fix length()/bytes() mismatch on XML string.
author
Carl Hetherington
<cth@carlh.net>
Sun, 23 Apr 2023 20:45:35 +0000
(22:45 +0200)
committer
Carl Hetherington
<cth@carlh.net>
Sun, 23 Apr 2023 20:45:42 +0000
(22:45 +0200)
src/lib/dcp_video.cc
patch
|
blob
|
history
diff --git
a/src/lib/dcp_video.cc
b/src/lib/dcp_video.cc
index 5879d6be68da23cca44f1ecd85d4d137d45cd118..0255588c6fc33e55fd0c7d50f6a4854933304e86 100644
(file)
--- 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 */