[ScreenMirroring] Fixed compile error.
authorcoderhyme <jhyo.kim@samsung.com>
Thu, 13 Jul 2017 09:36:02 +0000 (18:36 +0900)
committerSeokHoon LEE <andy.shlee@samsung.com>
Mon, 17 Jul 2017 01:33:20 +0000 (01:33 +0000)
The error is caused by https://review.tizen.org/gerrit/#/c/136118/.

Change-Id: Ic6df7a860a5fd184d059d6275bccc7ec79c7429c
Signed-off-by: coderhyme <jhyo.kim@samsung.com>
src/Tizen.Multimedia.Remoting/ScreenMirroring/ScreenMirroring.cs

index 9ef7bd3..63fee48 100644 (file)
@@ -163,15 +163,9 @@ namespace Tizen.Multimedia
 
         private void ReplaceDisplay(Display newDisplay)
         {
-            if (_display != null)
-            {
-                _display.Owner = null;
-            }
+            _display?.SetOwner(null);
             _display = newDisplay;
-            if (_display != null)
-            {
-                _display.Owner = this;
-            }
+            _display?.SetOwner(this);
         }
 
         /// <summary>