summaryrefslogtreecommitdiff
path: root/libweston/output-capture.c
diff options
context:
space:
mode:
authorPhilipp Zabel <p.zabel@pengutronix.de>2023-01-26 12:07:15 +0100
committerDaniel Stone <daniels@collabora.com>2023-01-28 12:59:16 +0000
commitefffd0d8a4ae2beb3f675b00d5eee81f09191d21 (patch)
tree2349e9d75d631b35ce5a0e4fbc0b7f9e000efa02 /libweston/output-capture.c
parentc67773bc5c2666ef1fab4c5b5d56f6b6aeda4f7f (diff)
downloadweston-efffd0d8a4ae2beb3f675b00d5eee81f09191d21.tar.gz
Revert "libweston: let weston_output_update_capture_info() take drm_format"
This reverts commit af5acbc9cb706b8fd42ff647a09a14ed39df2565. Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Diffstat (limited to 'libweston/output-capture.c')
-rw-r--r--libweston/output-capture.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/libweston/output-capture.c b/libweston/output-capture.c
index bde7327a..56b603c2 100644
--- a/libweston/output-capture.c
+++ b/libweston/output-capture.c
@@ -240,7 +240,7 @@ capture_info_get_csi(struct weston_output_capture_info *ci,
* \param src The source type on the output.
* \param width The new buffer width.
* \param height The new buffer height.
- * \param drm_format The new pixel format.
+ * \param format The new pixel format.
*
* If any one of width, height or format is zero/NULL, the source becomes
* unavailable to clients. Otherwise the source becomes available.
@@ -250,7 +250,8 @@ capture_info_get_csi(struct weston_output_capture_info *ci,
WL_EXPORT void
weston_output_update_capture_info(struct weston_output *output,
enum weston_output_capture_source src,
- int width, int height, uint32_t drm_format)
+ int width, int height,
+ const struct pixel_format_info *format)
{
struct weston_output_capture_info *ci = output->capture_info;
struct weston_output_capture_source_info *csi;
@@ -259,12 +260,12 @@ weston_output_update_capture_info(struct weston_output *output,
if (csi->width == width &&
csi->height == height &&
- csi->drm_format == drm_format)
+ csi->drm_format == format->format)
return;
csi->width = width;
csi->height = height;
- csi->drm_format = drm_format;
+ csi->drm_format = format->format;
if (source_info_is_available(csi)) {
capture_info_send_source_info(ci, csi);