[Spice-commits] 2 commits - configure.ac spice-common src/channel-display.c src/channel-display-gst.c

Victor Toso de Carvalho victortoso at kemper.freedesktop.org
Tue Jan 31 14:39:47 UTC 2017


 configure.ac              |    2 +-
 spice-common              |    2 +-
 src/channel-display-gst.c |    2 ++
 src/channel-display.c     |    6 ++++++
 4 files changed, 10 insertions(+), 2 deletions(-)

New commits:
commit 21df96ee88834785e4759e6eea5eaa432a6ff0b3
Author: Frediano Ziglio <fziglio at redhat.com>
Date:   Wed Jan 4 11:46:21 2017 +0000

    Add support for VP9
    
    Signed-off-by: Frediano Ziglio <fziglio at redhat.com>
    Acked-by: Victor Toso <victortoso at redhat.com>

diff --git a/configure.ac b/configure.ac
index 4fd0bd7..ee083e4 100644
--- a/configure.ac
+++ b/configure.ac
@@ -69,7 +69,7 @@ AC_CHECK_LIBM
 AC_SUBST(LIBM)
 
 AC_CONFIG_SUBDIRS([spice-common])
-PKG_CHECK_MODULES([SPICE_PROTOCOL], [spice-protocol >= 0.12.12])
+PKG_CHECK_MODULES([SPICE_PROTOCOL], [spice-protocol >= 0.12.13])
 
 COMMON_CFLAGS='-I${top_builddir}/spice-common/ -I${top_srcdir}/spice-common/ ${SPICE_PROTOCOL_CFLAGS}'
 AC_SUBST(COMMON_CFLAGS)
diff --git a/src/channel-display-gst.c b/src/channel-display-gst.c
index 5f4d321..c4190b2 100644
--- a/src/channel-display-gst.c
+++ b/src/channel-display-gst.c
@@ -77,6 +77,8 @@ static struct {
      */
     { "h264parse ! avdec_h264", "" },
 
+    /* SPICE_VIDEO_CODEC_TYPE_VP9 */
+    { "vp9dec", "caps=video/x-vp9" },
 };
 
 G_STATIC_ASSERT(G_N_ELEMENTS(gst_opts) <= SPICE_VIDEO_CODEC_TYPE_ENUM_END);
diff --git a/src/channel-display.c b/src/channel-display.c
index ca56cd1..06d433b 100644
--- a/src/channel-display.c
+++ b/src/channel-display.c
@@ -736,6 +736,12 @@ static void spice_display_channel_reset_capabilities(SpiceChannel *channel)
     } else {
         SPICE_DEBUG("GStreamer does not support the h264 codec");
     }
+    if (gstvideo_has_codec(SPICE_VIDEO_CODEC_TYPE_VP9)) {
+        spice_channel_set_capability(SPICE_CHANNEL(channel),
+                                     SPICE_DISPLAY_CAP_CODEC_VP9);
+    } else {
+        SPICE_DEBUG("GStreamer does not support the vp9 codec");
+    }
 }
 
 static void destroy_surface(gpointer data)
commit 1854b6baacd09e3f65ba7fd617fecc192d256739
Author: Victor Toso <me at victortoso.com>
Date:   Wed Oct 5 18:29:15 2016 +0200

    Update spice-common
    
    Frediano Ziglio (1):
          protocol: Add support for VP9 video codec
    
    Victor Toso (1):
          protocol: add preferred video codec message
    
    Signed-off-by: Victor Toso <victortoso at redhat.com>
    Acked-by: Frediano Ziglio <fziglio at redhat.com>

diff --git a/spice-common b/spice-common
index 86dcd22..30e8237 160000
--- a/spice-common
+++ b/spice-common
@@ -1 +1 @@
-Subproject commit 86dcd22d334a4992718780417bc574623bd61826
+Subproject commit 30e8237934b4060513bd0bdcc5ea0caa1dcc7b59


More information about the Spice-commits mailing list