[PATCH 1/4] glamor: provide glamor_xv_fini_port to free data at reset
Keith Packard
keithp at keithp.com
Wed Aug 6 22:12:36 PDT 2014
Make sure the saved resources for xv rendering are freed at server
reset time by calling the existing stop_video function.
Signed-off-by: Keith Packard <keithp at keithp.com>
---
glamor/glamor_priv.h | 1 +
glamor/glamor_xv.c | 6 ++++++
2 files changed, 7 insertions(+)
diff --git a/glamor/glamor_priv.h b/glamor/glamor_priv.h
index 042bad0..05d3eac 100644
--- a/glamor/glamor_priv.h
+++ b/glamor/glamor_priv.h
@@ -1024,6 +1024,7 @@ extern XvImageRec glamor_xv_images[];
extern int glamor_xv_num_images;
void glamor_xv_init_port(glamor_port_private *port_priv);
+void glamor_xv_fini_port(glamor_port_private *port_priv);
void glamor_xv_stop_video(glamor_port_private *port_priv);
int glamor_xv_set_port_attribute(glamor_port_private *port_priv,
Atom attribute, INT32 value);
diff --git a/glamor/glamor_xv.c b/glamor/glamor_xv.c
index 3f3e064..367b89f 100644
--- a/glamor/glamor_xv.c
+++ b/glamor/glamor_xv.c
@@ -146,6 +146,12 @@ glamor_xv_stop_video(glamor_port_private *port_priv)
}
}
+void
+glamor_xv_fini_port(glamor_port_private *port_priv)
+{
+ glamor_xv_stop_video(port_priv);
+}
+
int
glamor_xv_set_port_attribute(glamor_port_private *port_priv,
Atom attribute, INT32 value)
--
2.0.1
More information about the xorg-devel
mailing list