Added TI patches, generated from commit 04f9d72 of the following tree:
[ubuntu-omap:gst-plugins-bad1-0.git] / debian / patches / 0036-06-12-drmbufferpool-give-this-code-a-separate-debug-.patch
1 From a6aa88f2fb1eb963404f95bb55b5d02377f0ad1a Mon Sep 17 00:00:00 2001
2 From: Vincent Penquerc'h <vincent.penquerch@collabora.co.uk>
3 Date: Thu, 28 Jun 2012 09:03:59 +0000
4 Subject: [PATCH 036/100] [06/12] drmbufferpool: give this code a separate
5  debug category
6
7 and add a couple logs while we're at it
8 ---
9  gst-libs/gst/drm/gstdrmbufferpool.c |   13 ++++++++++++-
10  1 file changed, 12 insertions(+), 1 deletion(-)
11
12 diff --git a/gst-libs/gst/drm/gstdrmbufferpool.c b/gst-libs/gst/drm/gstdrmbufferpool.c
13 index 7022a37..67810fb 100644
14 --- a/gst-libs/gst/drm/gstdrmbufferpool.c
15 +++ b/gst-libs/gst/drm/gstdrmbufferpool.c
16 @@ -33,6 +33,9 @@
17  
18  #include "gstdrmbufferpool.h"
19  
20 +GST_DEBUG_CATEGORY (drmbufferpool_debug);
21 +#define GST_CAT_DEFAULT drmbufferpool_debug
22 +
23  static GstDRMBuffer * gst_drm_buffer_new (GstDRMBufferPool * pool);
24  static void gst_drm_buffer_set_pool (GstDRMBuffer * self,
25      GstDRMBufferPool * pool);
26 @@ -67,6 +70,8 @@ gst_drm_buffer_pool_new (GstElement * element,
27    GstDRMBufferPool *self = (GstDRMBufferPool *)
28        gst_mini_object_new (GST_TYPE_DRM_BUFFER_POOL);
29  
30 +  GST_DEBUG_OBJECT (element, "Creating DRM buffer pool with caps %" GST_PTR_FORMAT, caps);
31 +
32    gst_drm_buffer_pool_initialize (self, element, fd, caps, size);
33  
34    return self;
35 @@ -209,6 +214,7 @@ gst_drm_buffer_pool_put (GstDRMBufferPool * self, GstDRMBuffer * buf)
36  static void
37  gst_drm_buffer_pool_finalize (GstDRMBufferPool * self)
38  {
39 +  GST_DEBUG_OBJECT (self->element, "finalize");
40    g_mutex_free (self->lock);
41    if (self->caps)
42      gst_caps_unref (self->caps);
43 @@ -221,7 +227,12 @@ gst_drm_buffer_pool_finalize (GstDRMBufferPool * self)
44  static void
45  gst_drm_buffer_pool_class_init (GstDRMBufferPoolClass * klass)
46  {
47 -  GstMiniObjectClass *mini_object_class = GST_MINI_OBJECT_CLASS (klass);
48 +  GstMiniObjectClass *mini_object_class;
49 +
50 +  GST_DEBUG_CATEGORY_INIT (drmbufferpool_debug, "drmbufferpool", 0,
51 +      "DRM buffer pool");
52 +
53 +  mini_object_class = GST_MINI_OBJECT_CLASS (klass);
54    klass->buffer_alloc =
55        GST_DEBUG_FUNCPTR (gst_drm_buffer_new);
56    mini_object_class->finalize = (GstMiniObjectFinalizeFunction)
57 -- 
58 1.7.9.5
59