Added TI patches, generated from commit 04f9d72 of the following tree:
[ubuntu-omap:gst-plugins-bad1-0.git] / debian / patches / 0062-PATCH-02-33-kmssink-consider-kms-buffers-valid-drm-b.patch
1 From 79c7e63215d655962ae896a2b1b3f5e3c2294b7f Mon Sep 17 00:00:00 2001
2 From: Alessandro Decina <alessandro.decina@collabora.co.uk>
3 Date: Fri, 4 May 2012 10:08:47 +0000
4 Subject: [PATCH 062/100] [PATCH 02/33] kmssink: consider kms buffers valid
5  drm buffers (eek)
6
7 ---
8  sys/kms/gstducatidrmbuffer.c |    7 ++++++-
9  1 file changed, 6 insertions(+), 1 deletion(-)
10
11 diff --git a/sys/kms/gstducatidrmbuffer.c b/sys/kms/gstducatidrmbuffer.c
12 index 5b3f9cc..105be6f 100644
13 --- a/sys/kms/gstducatidrmbuffer.c
14 +++ b/sys/kms/gstducatidrmbuffer.c
15 @@ -153,7 +153,12 @@ static gboolean
16  allocator_check_compatible (GstDucatiBufferAllocator * allocator,
17      GstBuffer * buffer)
18  {
19 -  return GST_IS_DUCATI_DRM_BUFFER (buffer);
20 +  static GType kms_type = -1;
21 +  if (kms_type == -1)
22 +    kms_type = g_type_from_name ("GstDucatiKMSBuffer");
23 +
24 +  return GST_IS_DUCATI_DRM_BUFFER (buffer) ||
25 +      (kms_type != -1 && G_TYPE_CHECK_INSTANCE_TYPE (buffer, kms_type));
26  }
27  
28  static void
29 -- 
30 1.7.9.5
31