2014-06-09 Carl Hetherington <cth@carlh.net>
+ * Fix server/client with non-RGB24 sources.
+
* Make audio gain a floating-point value in the UI (#367).
* Work-around out-of-memory crashes with large start trims (#252).
xml->number_child<int> ("Width"), xml->number_child<int> ("Height")
);
- _image.reset (new Image (PIX_FMT_RGB24, size, true));
+ _image.reset (new Image (static_cast<AVPixelFormat> (xml->number_child<int> ("PixelFormat")), size, true));
_image->read_from_socket (socket);
}
node->add_child("Type")->add_child_text (N_("Raw"));
node->add_child("Width")->add_child_text (libdcp::raw_convert<string> (_image->size().width));
node->add_child("Height")->add_child_text (libdcp::raw_convert<string> (_image->size().height));
+ node->add_child("PixelFormat")->add_child_text (libdcp::raw_convert<string> (_image->pixel_format ()));
}
void