Added TI patches, generated from commit 04f9d72 of the following tree:
[ubuntu-omap:gst-plugins-bad1-0.git] / debian / patches / 0012-12-30-dri2videosink-destroy-context-only-whe-window-.patch
1 From 071ee108eba8f8ff823632e4a7c4d92e33d9f3d5 Mon Sep 17 00:00:00 2001
2 From: Vincent Penquerc'h <vincent.penquerch@collabora.co.uk>
3 Date: Fri, 20 Jul 2012 12:16:33 +0000
4 Subject: [PATCH 012/100] [12/30] dri2videosink: destroy context only whe
5  window is destroyed
6
7 This avoids using the X lock after it was destroyed, as buffers
8 may be destroyed later, and need to use the context.
9 ---
10  sys/dri2/gstdri2util.c      |    2 ++
11  sys/dri2/gstdri2videosink.c |    2 --
12  2 files changed, 2 insertions(+), 2 deletions(-)
13
14 diff --git a/sys/dri2/gstdri2util.c b/sys/dri2/gstdri2util.c
15 index 2ad9808..4972438 100644
16 --- a/sys/dri2/gstdri2util.c
17 +++ b/sys/dri2/gstdri2util.c
18 @@ -433,6 +433,8 @@ gst_dri2window_finalize (GstDRI2Window * xwindow)
19  
20    g_mutex_unlock (dcontext->x_lock);
21  
22 +  gst_dri2context_delete (dcontext);
23 +
24    GST_MINI_OBJECT_CLASS (dri2window_parent_class)->finalize (GST_MINI_OBJECT
25        (xwindow));
26  }
27 diff --git a/sys/dri2/gstdri2videosink.c b/sys/dri2/gstdri2videosink.c
28 index e1316a6..d036689 100644
29 --- a/sys/dri2/gstdri2videosink.c
30 +++ b/sys/dri2/gstdri2videosink.c
31 @@ -986,8 +986,6 @@ gst_dri2videosink_reset (GstDRI2VideoSink * self)
32    g_free (self->display_par);
33    self->display_par = NULL;
34    GST_OBJECT_LOCK (self);
35 -  if (self->dcontext)
36 -    gst_dri2context_delete (self->dcontext);
37    self->dcontext = NULL;
38    GST_OBJECT_UNLOCK (self);
39  }
40 -- 
41 1.7.9.5
42