[Spice-devel] [spice-gtk v1 0/6] Initialize GStreamer on SpiceSession

Victor Toso victortoso at redhat.com
Mon Sep 2 16:04:43 UTC 2019


From: Victor Toso <me at victortoso.com>

Hi,

Considering that we depend on GStreamer, let's move the initialization
to SpiceSession so we can guarantee one init and one deinit on spice-gtk
level. Works as well if gst_init() was called outside spice-gtk.

Tested with spicy which does call gst_init() and gst_deinit() and with
remote-viewer that don't call any gstreamer function at all.

Some other improvements, leak fix and possible test as well.

CI: https://gitlab.freedesktop.org/victortoso/spice-gtk/pipelines/60612

Cheers,

Victor Toso (6):
  session: initialize gstreamer once
  display-gst: rely on SpiceSession init of GStreamer
  gstaudio: rely on SpiceSession init of GStreamer
  session: gst_deinit() GStreamer if we initialize it
  spice-gstaudio: fix GTask leak on query for volume
  RFC: test: session: gstreamer init by us or client

 src/channel-display-gst.c | 23 ++++-----------
 src/spice-gstaudio.c      | 61 +++++++++++++++++++--------------------
 src/spice-session.c       | 30 +++++++++++++++++++
 tests/session.c           | 49 +++++++++++++++++++++++++++++++
 4 files changed, 113 insertions(+), 50 deletions(-)

-- 
2.21.0



More information about the Spice-devel mailing list