Added TI patches, generated from commit 04f9d72 of the following tree:
[ubuntu-omap:gst-plugins-bad1-0.git] / debian / patches / 0007-07-30-dri2videosink-do-not-crash-when-XOpenDisplay-f.patch
1 From 726faff2ce71f165741734b8c211f2e7d5867f08 Mon Sep 17 00:00:00 2001
2 From: Vincent Penquerc'h <vincent.penquerch@collabora.co.uk>
3 Date: Mon, 25 Jun 2012 10:39:52 +0000
4 Subject: [PATCH 007/100] [07/30] dri2videosink: do not crash when
5  XOpenDisplay fails
6
7 ---
8  sys/dri2/gstdri2util.c |    5 +++++
9  1 file changed, 5 insertions(+)
10
11 diff --git a/sys/dri2/gstdri2util.c b/sys/dri2/gstdri2util.c
12 index bc1ebe9..95b5f43 100644
13 --- a/sys/dri2/gstdri2util.c
14 +++ b/sys/dri2/gstdri2util.c
15 @@ -167,6 +167,11 @@ gst_dri2context_new (GstElement * elem)
16    dcontext->x_lock = g_mutex_new ();
17  
18    dcontext->x_display = XOpenDisplay (NULL);
19 +  if (!dcontext->x_display) {
20 +    GST_ERROR_OBJECT (elem, "Failed to open X display");
21 +    goto fail;
22 +  }
23 +
24    if (!DRI2InitDisplay(dcontext->x_display, &ops)) {
25      GST_ERROR_OBJECT (elem, "DRI2InitDisplay failed");
26      goto fail;
27 -- 
28 1.7.9.5
29