Waylandsink : fix bug for set display 54/60554/1 accepted/tizen/common/20160302.193255 accepted/tizen/ivi/20160229.100803 accepted/tizen/mobile/20160229.100714 accepted/tizen/tv/20160229.100730 accepted/tizen/wearable/20160229.100745 submit/tizen/20160229.060445
authorHyunil <hyunil46.park@samsung.com>
Mon, 29 Feb 2016 03:27:45 +0000 (12:27 +0900)
committerHyunil <hyunil46.park@samsung.com>
Mon, 29 Feb 2016 03:27:45 +0000 (12:27 +0900)
Change-Id: I0b7385a2080388b99f5c5ae8d01f3980d6b26167
Signed-off-by: Hyunil <hyunil46.park@samsung.com>
ext/wayland/gstwaylandsink.c

index 200be7c..3a2005e 100755 (executable)
@@ -1414,12 +1414,13 @@ gst_wayland_sink_set_window_handle (GstVideoOverlay * overlay, guintptr handle)
     if (G_LIKELY (gst_wayland_sink_find_display (sink))) {
       /* we cannot use our own display with an external window handle */
       if (G_UNLIKELY (sink->display->own_display)) {
+                 GST_ELEMENT_WARNING (sink, RESOURCE, OPEN_READ_WRITE,
+                         ("Application did not provide a wayland display handle"),
+                         ("Now waylandsink use internal display handle "
+                                 "which is created ourselves. Consider providing a "
+                                 "display handle from your application with GstContext"));
+                 sink->window = gst_wl_window_new_in_surface (sink->display, surface);
       } else {
-        GST_ELEMENT_WARNING (sink, RESOURCE, OPEN_READ_WRITE,
-            ("Application did not provide a wayland display handle"),
-            ("Now waylandsink use internal display handle "
-                "which is created ourselves. Consider providing a "
-                "display handle from your application with GstContext"));
         sink->window = gst_wl_window_new_in_surface (sink->display, surface);
       }
     } else {