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

Marc-André Lureau marcandre.lureau at redhat.com
Thu Oct 19 16:23:22 UTC 2017


Hi

----- Original Message -----
> 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>

Reviewed-by: Marc-André Lureau <marcandre.lureau 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)
> 
> _______________________________________________
> Spice-devel mailing list
> Spice-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/spice-devel
> 


More information about the Spice-devel mailing list