[longomatch] Add more debug for the roi



commit 6d82e3ee66b3b2299adde9acb57d630058e30b07
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date:   Tue May 5 11:04:27 2015 +0200

    Add more debug for the roi

 libcesarplayer/gst-nle-source.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/libcesarplayer/gst-nle-source.c b/libcesarplayer/gst-nle-source.c
index fe079bd..10473f6 100644
--- a/libcesarplayer/gst-nle-source.c
+++ b/libcesarplayer/gst-nle-source.c
@@ -318,6 +318,9 @@ gst_nle_source_update_videocrop (GstNleSource * nlesrc, GstCaps * caps)
 
   item = (GstNleSrcItem *) g_list_nth_data (nlesrc->queue, nlesrc->index);
 
+  GST_DEBUG_OBJECT (nlesrc, "Applying roi %d %d %dX%d\n",
+      item->roi.x, item->roi.y, item->roi.width, item->roi.height);
+
   if (item->roi.width && item->roi.height) {
     GstStructure *structure;
     gint vwidth = 0, vheight = 0;
@@ -333,6 +336,8 @@ gst_nle_source_update_videocrop (GstNleSource * nlesrc, GstCaps * caps)
     }
   }
 
+  GST_DEBUG_OBJECT (nlesrc, "Configuring videocrop left:%d "
+      "right:%d top:%d left:%d\n", left, right, top, bottom);
   g_object_set (G_OBJECT (nlesrc->videocrop), "left", left, "right", right,
       "top", top, "bottom", bottom, NULL);
 }
@@ -390,6 +395,7 @@ gst_nle_source_push_buffer (GstNleSource * nlesrc, GstBuffer * buf,
     }
 
     if (G_UNLIKELY (!nlesrc->item_setup) && !is_audio) {
+      GST_DEBUG_OBJECT (nlesrc, "Applying roi and title properties for this segment");
       gst_nle_source_update_videocrop (nlesrc, GST_BUFFER_CAPS (buf));
       gst_nle_source_update_overlay_title (nlesrc);
       nlesrc->item_setup = TRUE;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]