Added TI patches, generated from commit 04f9d72 of the following tree:
[ubuntu-omap:gst-plugins-bad1-0.git] / debian / patches / 0085-PATCH-25-33-kmssink-wind-down-the-drm-machinery-on-r.patch
1 From c6faa5d4c143b57862d254d822a546c66edbaaeb Mon Sep 17 00:00:00 2001
2 From: Vincent Penquerc'h <vincent.penquerch@collabora.co.uk>
3 Date: Wed, 17 Oct 2012 17:06:46 +0100
4 Subject: [PATCH 085/100] [PATCH 25/33] kmssink: wind down the drm machinery
5  on reset
6
7 ---
8  sys/kms/gstdrmutils.h |    1 +
9  sys/kms/gstkmssink.c  |    5 +++++
10  2 files changed, 6 insertions(+)
11
12 diff --git a/sys/kms/gstdrmutils.h b/sys/kms/gstdrmutils.h
13 index 13fb0f2..54439c6 100644
14 --- a/sys/kms/gstdrmutils.h
15 +++ b/sys/kms/gstdrmutils.h
16 @@ -26,6 +26,7 @@ struct connector {
17         int pipe;
18  };
19  
20 +void gst_drm_connector_cleanup (int fd, struct connector * c);
21  gboolean gst_drm_connector_find_mode_and_plane (int fd,
22      struct omap_device * dev, int width, int height,
23      drmModeRes * resources, drmModePlaneRes * plane_resources,
24 diff --git a/sys/kms/gstkmssink.c b/sys/kms/gstkmssink.c
25 index 45453f0..51fc6f2 100644
26 --- a/sys/kms/gstkmssink.c
27 +++ b/sys/kms/gstkmssink.c
28 @@ -428,6 +428,11 @@ gst_kms_sink_get_property (GObject * object, guint prop_id,
29  static void
30  gst_kms_sink_reset (GstKMSSink * sink)
31  {
32 +  GST_DEBUG_OBJECT (sink, "reset");
33 +
34 +  if (sink->fd != -1) {
35 +    gst_drm_connector_cleanup (sink->fd, &sink->conn);
36 +  }
37    memset (&sink->conn, 0, sizeof (struct connector));
38  
39    if (sink->pool) {
40 -- 
41 1.7.9.5
42