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@redhat.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Acked-by: Frediano Ziglio <fziglio@redhat.com>
This commit is contained in:
Christophe de Dinechin 2017-10-19 17:44:10 +02:00 committed by Frediano Ziglio
parent 26c126335e
commit 0381e62141

View File

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