Skip to content
Snippets Groups Projects
  1. Aug 09, 2018
  2. Aug 07, 2018
  3. Aug 06, 2018
  4. Aug 02, 2018
  5. Aug 01, 2018
  6. Jul 27, 2018
  7. Jul 25, 2018
    • Victor Toso's avatar
      gtk-deprecated: silence warn on gtk_widget_set_double_buffered() · ad22132a
      Victor Toso authored
      
      By default, all widgets are double buffered so this patch removes two
      calls to gtk_widget_set_double_buffered() that are only enabling it.
      
      The only special case is under egl (virgl) at set_egl_enabled() as
      disabling the double buffered seems to prevent glitches. The call to
      gtk_widget_set_double_buffered() was kept but wrapped under
      G_GNUC_BEGIN/END_IGNORE_DEPRECATIONS to avoid warnings.
      
      Note however that this is only expected to work under X11.
      
      Warnings fixed:
       | spice-widget.c: In function ‘spice_display_init’:
       | spice-widget.c:643:5: warning: ‘gtk_widget_set_double_buffered’ is
       | deprecated
       |
       |     gtk_widget_set_double_buffered(area, true);
       |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
       |
       | spice-widget.c:661:5: warning: ‘gtk_widget_set_double_buffered’ is
       | deprecated
       |
       |     gtk_widget_set_double_buffered(area, true);
       |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
       |
       | spice-widget.c: In function ‘set_egl_enabled’:
       | spice-widget.c:1290:9: warning: ‘gtk_widget_set_double_buffered’ is
       | deprecated
       |     gtk_widget_set_double_buffered(GTK_WIDGET(area), !enabled);
       |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      
      Signed-off-by: default avatarVictor Toso <victortoso@redhat.com>
      Acked-by: default avatarFrediano Ziglio <fziglio@redhat.com>
      ad22132a
    • Frediano Ziglio's avatar
      Remove deprecation blocks not needed anymore · bd78558b
      Frediano Ziglio authored
      
      Some deprecation blocks in the code were there to avoid
      warning when using too recent GTK and Glib functions.
      Now that we bump GTK version remove these warning avoidance.
      
      Signed-off-by: default avatarFrediano Ziglio <fziglio@redhat.com>
      Acked-by: default avatarVictor Toso <victortoso@redhat.com>
      bd78558b
  8. Jul 24, 2018
    • Victor Toso's avatar
      gtk-deprecated: Avoid gdk_screen_get_width/height() · 3cdcc5a8
      Victor Toso authored
      
      As those were deprecated in favor of fetching for information directly
      with GdkMonitor.
      
      Warnings fixed:
       | spice-widget.c: In function ‘mouse_wrap’:
       | spice-widget.c:1136:5: warning: ‘gdk_screen_get_width’ is deprecated
       |
       |     xr = gdk_screen_get_width(screen) / 2;
       |     ^~
       |
       | spice-widget.c:1137:5: warning: ‘gdk_screen_get_height’ is deprecated
       |
       |     yr = gdk_screen_get_height(screen) / 2;
       |     ^~
      
      Signed-off-by: default avatarVictor Toso <victortoso@redhat.com>
      Acked-by: default avatarFrediano Ziglio <fziglio@redhat.com>
      3cdcc5a8
    • Victor Toso's avatar
      gtk-deprecated: Use gdk_keymap_get_for_display() · d98a684f
      Victor Toso authored
      
      As gdk_keymap_get_default() was deprecated in 3.22
      
      Warnings fixed:
       | vncdisplaykeymap.c: In function ‘vnc_display_keyval_set_entries’:
       | vncdisplaykeymap.c:263:4: warning: ‘gdk_keymap_get_default’ is
       | deprecated: Use 'gdk_keymap_get_for_display' instead
       |
       |     gdk_keymap_get_entries_for_keyval(gdk_keymap_get_default(),
       |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
       |
       | spice-gtk-session.c: In function ‘spice_gtk_session_init’:
       | spice-gtk-session.c:181:5: warning: ‘gdk_keymap_get_default’ is
       | deprecated: Use 'gdk_keymap_get_for_display' instead
       |
       |     GdkKeymap *keymap = gdk_keymap_get_default();
       |     ^~~~~~~~~
       |
       | spice-widget.c: In function ‘get_scancode_from_keyval’:
       | spice-widget.c:1731:5: warning: ‘gdk_keymap_get_default’ is
       | deprecated: Use 'gdk_keymap_get_for_display' instead
       |
       |      if (gdk_keymap_get_entries_for_keyval(gdk_keymap_get_default(),
       |      ^~
      
      Signed-off-by: default avatarVictor Toso <victortoso@redhat.com>
      Acked-by: default avatarFrediano Ziglio <fziglio@redhat.com>
      d98a684f
    • Victor Toso's avatar
      build-sys: bump gtk requirement 3.12 -> 3.22 · a1fd9ee1
      Victor Toso authored
      
      Fedora 28: 3.22.30
      Fedora 27: 3.22.26
      Fedora 26: 3.22.21
      RHEL 7.6: 3.22.30
      RHEL 7.5: 3.22.26
      RHEL 7.4: 3.22.10
      Debian 10: 3.22.30
      Debian  9: 3.22.11
      Ubuntu 18.04: 3.22.30
      Ubuntu 17.10: 3.22.24
      
      Besides cleanup the code, gtk is under heavy development to better
      work under Wayland and reducing the code path based on library version
      should be helpful as well.
      
      This patch also removes the check for gdk_event_get_scancode as it is
      included in 3.22.
      
      Signed-off-by: default avatarVictor Toso <victortoso@redhat.com>
      Signed-off-by: default avatarFrediano Ziglio <fziglio@redhat.com>
      a1fd9ee1
  9. Jul 23, 2018
  10. Jul 20, 2018
  11. Jul 18, 2018
    • Lukáš Hrázký's avatar
      67ab780a
    • Lukáš Hrázký's avatar
      Update spice-common submodule · b53b176d
      Lukáš Hrázký authored and Frediano Ziglio's avatar Frediano Ziglio committed
      
      This brings in the following changes:
      
      Christophe Fergeau (20):
            build: Update git.mk to latest version
            build: Remove docs/.gitignore
            build: Add __pycache__/*.pyc to DISTCLEANFILES
            log: Only install glib log handler if SPICE_DEBUG_LEVEL is set
            test-logging: Improve debug level tests
            test-region: Use GTest API
            test-region: Replace direct printf with g_debug() calls
            test-region: Don't call region_dump() by default
            test-region: Remove unneeded printf
            test-region: Replace spice_assert() with g_assert_true()
            test-region: Add g_assert() checks
            snd: Replace spice_printerr() use with g_warning
            swcanvas: Remove canvas_create()
            meson: Remove '(default: xxx)' from option description
            log: Remove SPICE_DISABLE_ABORT
            common: Remove spice_abort()
            build: Remove spice_common.h
            pixman: Use g_error() rather than g_abort()
            build: Define GLIB_VERSION_MIN_REQUIRED/GLIB_VERSION_MAX_ALLOWED
            quic: Wrap declaration/call of quic method in macros
      
      Christophe de Dinechin (1):
            Add SPICE_ATTR_NORETURN on prototype of error functions
      
      Eduardo Lima (Etrunko) (4):
            meson: Enable '-std=c99' build flag
            meson: Cleanup optional dependency checks
            Update gitlab-ci to use meson
            test-region: Decrease loop count by a factor of 10
      
      Frediano Ziglio (36):
            test-quic: Allows to specify multiple images to test
            canvas_base: Rework DUMP_JPEG debugging
            test-quic: Increase test timeout using Meson
            ssl_verify: Fix build for newer LibreSSL
            Revert "ssl_verify: Fix build for newer LibreSSL"
            ssl_verify: Fix build for newer LibreSSL
            test-region: Create proper test for region from source code
            marshaller: Fix a possible leak
            canvas_base: Make sure top_down is a boolean
            marshal: Fix a bug with zero attribute
            ptypes: Improve some attribute documentation
            build: Reuse TEST_MARSHALLERS macro
            build: Reindent macros
            log: Remove spice_printerr macro
            test-marshallers: Check for "zero" attribute
            quic: Call encode from golomb_coding
            canvas_base: Fix minor indentation issues
            canvas_base: Avoid misaligned access decoding LZ4 data
            meson: Remove -std=c99
            quic: Add UPDATE_MODEL_COMP macro to iterate over channels
            quic: Rework PIXEL_A/PIXEL_B macros
            quic: Add SAME_PIXEL macro
            quic: Make {UN, }COMPRESS_xx macros closer
            quic: Add missing #undef SET_a/GET_a
            quic: Call directly encode_state_run from templates.
            quic: Add CORRELATE*/DECORRELATE* macros
            quic: Add APPLY_ALL_COMP macro to iterate over channels
            quic: Move all golomb decoding macros in a single place
            quic: Add DECLARE_*_VARIABLES macros
            quic: Introduce COPY_PIXEL macro
            quic: Reorder macro declarations
            quic: Unify rgb/non-rgb macro declarations
            quic: Remove duplicate file
            canvas_base: Check for overflows decoding LZ4
            canvas_base: Change spice_warning to g_warning
            tests: Join test-overflow and test-marshallers
      
      Snir Sheriber (1):
            protocol: Add support for h265 video codec
      
      Signed-off-by: default avatarLukáš Hrázký <lhrazky@redhat.com>
      Acked-by: default avatarFrediano Ziglio <fziglio@redhat.com>
      b53b176d
  12. Jul 17, 2018
  13. Jul 06, 2018
  14. Jul 05, 2018
  15. Jun 29, 2018
  16. Jun 26, 2018
  17. Jun 20, 2018
  18. Jun 14, 2018
  19. Jun 11, 2018
    • Victor Toso's avatar
    • Christophe Fergeau's avatar
      build-sys: disable celt051 by default · 089553ff
      Christophe Fergeau authored
      
      With spice-common commit 72b0d603e12, SPICE_CHECK_CELT051 will error
      out if celt051-devel is installed, but neither --enable-celt051 nor
      --disable-celt051 are specified. This could be a problem when running
      make distcheck, so this commit adds --disable-celt051 so that we never
      hit that error.
      
      Signed-off-by: default avatarVictor Toso <victortoso@redhat.com>
      089553ff
    • Victor Toso's avatar
      Update spice-common · e6e9d7ac
      Victor Toso authored
      
      Christophe Fergeau (21):
            quic: Remove configurable RLE_PRED
            quic: Remove configurable PRED
            quic: Get rid of QUIC_RGB #define
            quic: Get rid of RLE_STAT #define
            quic: Get rid of RLE #define
            quic: Factor common code
            quic: Introduce CommonState *state variable in templates
            quic: s/decorrelate_drow/correlate_row
            quic: Add macros to make quic_tmpl.c much closer to quic_rgb_tmpl.c
            quic: Remove unused argument in uncompress_row{0, }
            quic: Use channel->correlate_row in macros
            quic: Add test case for compression/decompression
            build: Ensure we link with -lm if needed
            build: Disable celt 0.5.1 by default
            build: By default, error out if Opus is missing
            build: Use AM_COND_IF
            build: Remove checks for functions which are never called
            build: Remove bitops.h
            build: Move client sources to libspice_common_client_la_SOURCES
            meson: Support auto/true/false for optional dependencies
            meson: Remove check for vfork
      
      Frediano Ziglio (21):
            protocol: Add some documentation for inval_all_pixmaps message
            Add --enable-extra-checks option
            codegen: Add some comments
            codegen: Removed unused get_type methods
            protocol: Use a typedef to specify stream_id type
            lz: Move ENCODE_PIXEL for RGB24 and RGB32 to a common place
            Fix integer overflows computing sizes
            Write a small test to test possible crash
            Avoid integer overflow computing image sizes
            Fix generation of Smartcard channel
            test-overflow: Remove a leak in the test
            marshaller: Remove initial underscore from static function
            codegen: Remove duplicate client and server code from ChannelType::resolve
            Check for messages with duplicate names inside a channel
            Check for messages with duplicate values inside a channel
            lz: Optimise SAME_PIXEL for RGB16
            lz: Inline GET_{r,g,b} macros
            quic: Remove 'no-inline' hack
            quic: Remove some too strict asserts in hot paths
            quic: Fix endianness encoding
            quic: Use __builtin_clz if available
      
      Eduardo Lima (Etrunko) (8):
            build: Remove FIXME_SERVER_SMARTCARD hack
            Fix demarshaller code generator
            Fix field names for Smartcard protocol structures
            Fix cast to spice_marshaller_item_free_func function
            Bump glib requirements to 2.38
            test-quic: Fix -Wsign-compare warning
            Add support for building with meson/ninja
            Add .gitlab-ci.yml file
      
      Jonathon Jongsma (2):
            Remove extra self parameter from member function
            miLineArc(): initialize edge1, edge2
      
      Victor Toso (1):
            messages: document limitation of id in StreamCreate
      
      Signed-off-by: default avatarVictor Toso <victortoso@redhat.com>
      Acked-by: default avatarChristophe Fergeau <cfergeau@redhat.com>
      e6e9d7ac
    • Victor Toso's avatar
      channel-usbredir: Fix crash on channel-up · 972a61db
      Victor Toso authored
      By adding a guard to not handle channel-up on SpiceUsbredirChannel in
      case struct usbredirhost wasn't initialized yet. Same guard is in
      place for the generic usbredir_handle_msg() function to avoid handling
      Server's message while Client's initialization is not done.
      
      As mentioned in commit 291f3e44, this isn't a problem for
      graphical clients as some initialization is done to present the
      shareable usb devices to user.
      
      Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1399838
      
      
      Signed-off-by: default avatarVictor Toso <victortoso@redhat.com>
      Acked-by: default avatarChristophe Fergeau <cfergeau@redhat.com>
      972a61db
    • Victor Toso's avatar
      Revert "channel-usbredir: Fix crash on channel-up" · 139f84da
      Victor Toso authored
      This reverts commit 291f3e44.
      
      Follow up patch should address rhbz#1399838 mentioned in commit above
      in a different way.
      
      Major reason to revert is that the SpiceUsbDeviceManager object is
      kept in SpiceSession as an easy way to share it between different
      SpiceUsbredirChannel while SpiceSession itself does not use it. This
      causes problems on migration as we start a new session with a new
      SpiceUsbDeviceManager object while the previous one still exists.
      
      Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1558043
      
      
      Signed-off-by: default avatarVictor Toso <victortoso@redhat.com>
      Acked-by: default avatarChristophe Fergeau <cfergeau@redhat.com>
      139f84da
  20. Jun 08, 2018
  21. Jun 07, 2018
    • Jonathon Jongsma's avatar
      Add SpiceSession::disconnected signal · 1c08a117
      Jonathon Jongsma authored
      
      Previously, an application was required to determine whether a session
      had been disconnected by listening for the SpiceSession::channel-destroy
      signal for each individual channel. The Application had to keep track of
      whether all channels had been destroyed.
      
      An additional difficulty is that when a SpiceSession::channel-destroy
      signal is emitted, the channel object has not been freed yet, so any
      shutdown/de-allocation actions have not yet happened. This became
      significant since virt-viewer exits the application in response to the
      last 'channel-destroy' signal, which means that the channel objects are
      never properly freed. This is particularly problematic for the usbredir
      channel, which might need to disconnect USB devices asynchronously, and
      if the application exits before that process has completed, the USB
      devices may not be available on the client machine.
      
      With this patch, the SpiceSession still emits the 'channel-destroy'
      signal for each channel when it is disconnected. But it also internally
      tracks which channels have been destroyed, and waits for them to be
      freed. When all channels are freed, it emits an additional
      'disconnected' signal.  An application can be confident that all
      channels have been freed by this point, and the application can exit
      safely.
      
      Signed-off-by: default avatarJonathon Jongsma <jjongsma@redhat.com>
      Acked-by: default avatarMarc-André Lureau <marcandre.lureau@gmail.com>
      1c08a117
    • Jonathon Jongsma's avatar
      Don't unref GAsyncResult in callback · 4b730b1a
      Jonathon Jongsma authored
      
      A GAsyncReadCallback function should not unref the GAsyncResult passed
      to it as an argument since it does not hold a reference. This could
      cause a double-free error (or a glib warning that it is not a valid
      GObject)..
      
      Signed-off-by: default avatarJonathon Jongsma <jjongsma@redhat.com>
      Acked-by: default avatarMarc-André Lureau <marcandre.lureau@gmail.com>
      4b730b1a
    • Marc-André Lureau's avatar
      gstaudio: specify the segment format to be time-based · e5ece54a
      Marc-André Lureau authored
      With gstreamer audio backend, the following criticals are printed:
      (virt-viewer:27631): GStreamer-CRITICAL **: gst_segment_to_running_time: assertion 'segment->format == format' failed
      
      Because the default appsrc segment format is byte-based, although an
      audio sink want a time-based segment.
      
      Fixes:
      #39
      
      
      
      Signed-off-by: default avatarMarc-André Lureau <marcandre.lureau@redhat.com>
      Acked-by: default avatarVictor Toso <victortoso@redhat.com>
      e5ece54a
  22. Jun 04, 2018
Loading