[Spice-devel] [PATCH spice-gtk v2] spicy: Add call of gst_deinit at program exit

Christophe de Dinechin christophe at dinechin.org
Thu Oct 19 15:44:10 UTC 2017


From: Christophe de Dinechin <dinechin at redhat.com>

This is useful for some instrumentation, e.g. the leaks tracer,
that perform some of their operations within gst_deinit.

Without this patch, if you run spicy with
	GST_DEBUG="GST_TRACER:7" GST_TRACERS="leaks" spicy ...
the leak tracer does not show any output, because it runs in gst_deinit.

Signed-off-by: Christophe de Dinechin <dinechin at redhat.com>
---
 tools/spicy.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/tools/spicy.c b/tools/spicy.c
index 088e034..d79e504 100644
--- a/tools/spicy.c
+++ b/tools/spicy.c
@@ -2068,5 +2068,8 @@ int main(int argc, char *argv[])
     g_free(spicy_title);
 
     setup_terminal(true);
+#if HAVE_GSTAUDIO || HAVE_GSTVIDEO
+    gst_deinit();
+#endif
     return 0;
 }
-- 
2.13.5 (Apple Git-94)



More information about the Spice-devel mailing list