*/
-#include "compose.hpp"
#include "config.h"
#include "cross.h"
#include "dcp_video.h"
#include "rng.h"
#include "warnings.h"
#include <libcxml/cxml.h>
+#include <dcp/compose.h>
#include <dcp/raw_convert.h>
#include <dcp/openjpeg_image.h>
#include <dcp/rgb_xyz.h>
auto const comment = Config::instance()->dcp_j2k_comment();
ArrayData enc = {};
- int const minimum_size = Config::instance()->minimum_frame_size();
+ /* This was empirically derived by a user: see #1902 */
+ int const minimum_size = 16384;
LOG_GENERAL ("Using minimum frame size %1", minimum_size);
auto xyz = convert_to_xyz (_frame, boost::bind(&Log::dcp_log, dcpomatic_log.get(), _1, _2));
/* Send XML metadata */
auto xml = doc.write_to_string ("UTF-8");
socket->write (xml.length() + 1);
- socket->write ((uint8_t *) xml.c_str(), xml.length() + 1);
+ socket->write ((uint8_t *) xml.c_str(), xml.bytes() + 1);
/* Send binary data */
LOG_TIMING("start-remote-send thread=%1", thread_id ());