[Spice-commits] tools/spicy.c

Frediano Ziglio fziglio at kemper.freedesktop.org
Fri Oct 20 15:18:59 UTC 2017


 tools/spicy.c |    3 +++
 1 file changed, 3 insertions(+)

New commits:
commit 0381e62141edffb16ae836550f0db23e67a465f9
Author: Christophe de Dinechin <dinechin at redhat.com>
Date:   Thu Oct 19 17:44:10 2017 +0200

    spicy: Add call of gst_deinit at program exit
    
    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>
    Reviewed-by: Marc-André Lureau <marcandre.lureau at redhat.com>
    Acked-by: Frediano Ziglio <fziglio at redhat.com>

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;
 }


More information about the Spice-commits mailing list