waylandsink : Preconditon of display handle is wrong, 74/56674/1 accepted/tizen/mobile/20160112.043359 accepted/tizen/tv/20160112.043421 accepted/tizen/wearable/20160112.043447 submit/tizen/20160112.025507
authorHyunil <hyunil46.park@samsung.com>
Tue, 12 Jan 2016 01:48:52 +0000 (10:48 +0900)
committerHyunil <hyunil46.park@samsung.com>
Tue, 12 Jan 2016 01:48:52 +0000 (10:48 +0900)
waylandsink need to change form GST_ELEMENT_ERROR to GST_ELEMENT_WARNING
in gst_wayland_sink_set_window_handle()

Change-Id: I8fb713d42d0c9b0fe66a4c58919f81970b0d7fcb
Signed-off-by: Hyunil <hyunil46.park@samsung.com>
ext/wayland/gstwaylandsink.c

index 11f665e..3a6d93a 100755 (executable)
@@ -1158,11 +1158,18 @@ 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_ERROR (sink, RESOURCE, OPEN_READ_WRITE,
+#ifdef GST_WLSINK_ENHANCEMENT
+        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"));
+#else
+        GST_ELEMENT_ERROR (sink, RESOURCE, OPEN_READ_WRITE,
             ("waylandsink cannot use an externally-supplied surface without "
                 "an externally-supplied display handle. Consider providing a "
                 "display handle from your application with GstContext"));
+#endif
       } else {
         sink->window = gst_wl_window_new_in_surface (sink->display, surface);
       }