[Spice-devel] [PATCH spice-gtk v2] spicy: Add call of gst_deinit at program exit
Frediano Ziglio
fziglio at redhat.com
Fri Oct 20 11:58:41 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>
>
Ack for me
> > ---
> > 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;
> > }
Frediano
More information about the Spice-devel
mailing list