[waylandsink] lower log level and add log for debugging
authorNAMJEONGYOON <just.nam@samsung.com>
Wed, 6 Jan 2016 04:31:36 +0000 (13:31 +0900)
committerNAMJEONGYOON <just.nam@samsung.com>
Wed, 6 Jan 2016 10:21:47 +0000 (19:21 +0900)
Change-Id: I8c7f516477591575836792065516a12a642e0b9f

ext/wayland/gstwaylandsink.c
ext/wayland/wlwindow.c

index a51facb..11f665e 100755 (executable)
@@ -804,7 +804,7 @@ gst_wayland_sink_render (GstBaseSink * bsink, GstBuffer * buffer)
 
   g_mutex_lock (&sink->render_lock);
 
-  GST_ERROR_OBJECT (sink, "render buffer %p", buffer);
+  GST_LOG_OBJECT (sink, "render buffer %p", buffer);
 
   if (G_UNLIKELY (!sink->window)) {
     /* ask for window handle. Unlock render_lock while doing that because
index aee0f32..4c34b88 100644 (file)
@@ -344,12 +344,18 @@ gst_wl_window_render (GstWlWindow * window, GstWlBuffer * buffer,
   /*Wayland-compositor will try to render damage area which need  to be updated */
   wl_surface_damage (window->video_surface, 0, 0, window->surface_width,
       window->surface_height);
+#ifdef GST_WLSINK_ENHANCEMENT
+  GST_LOG("update area width %d, height %d", window->surface_width, window->surface_height);
+#endif
   /* wl_surface_commit change surface state, if wl_buffer is not attached newly,  then surface is not changed */
   wl_surface_commit (window->video_surface);
 
   if (G_UNLIKELY (info)) {
     /* commit also the parent (area_surface) in order to change
      * the position of the video_subsurface */
+#ifdef GST_WLSINK_ENHANCEMENT
+    GST_DEBUG("render_rectangle %d*%d", window->render_rectangle.w, window->render_rectangle.h);
+#endif
     wl_surface_damage (window->area_surface, 0, 0, window->render_rectangle.w,
         window->render_rectangle.h);
     wl_surface_commit (window->area_surface);