From 2353b70d5f83279b341d05f1fa12ea3e75c1f9a2 Mon Sep 17 00:00:00 2001
From: Andreas Traczyk <andreas.traczyk@savoirfairelinux.com>
Date: Wed, 3 Jul 2019 14:47:16 -0400
Subject: [PATCH] mediadecoder: allow negative offsets in decoder options

- this is required when screen sharing a secondary screen that is
  aligned to the left or above the primary screen.

Change-Id: I220bf4003ea4bc2071af67a80cb9c5afa0406d5b
---
 src/media/media_device.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/media/media_device.h b/src/media/media_device.h
index 1024e0f59a..258ee63325 100644
--- a/src/media/media_device.h
+++ b/src/media/media_device.h
@@ -46,8 +46,8 @@ struct DeviceParams {
     unsigned channel {}; // Channel number
     std::string loop {};
     std::string sdp_flags {};
-    unsigned offset_x {};
-    unsigned offset_y {};
+    int offset_x {};
+    int offset_y {};
     int orientation {};
 };
 
-- 
GitLab