[Spice-devel] [PATCH spice-gtk] gst: Fix detection of h264 stream decoder

Pavel Grunt pgrunt at redhat.com
Thu Jul 13 11:05:31 UTC 2017


GStreamer's avdec_h264 needs h264parse to be able to process H264 video
streams. However the check for elements through GstRegistry forgot to
include the parsers, thus making spice-gtk to not set the relevant cap
to inform the server about H264 decoding capability.
---
 src/channel-display-gst.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/channel-display-gst.c b/src/channel-display-gst.c
index 54edd6b..d883d9f 100644
--- a/src/channel-display-gst.c
+++ b/src/channel-display-gst.c
@@ -652,6 +652,7 @@ gboolean gstvideo_has_codec(int codec_type)
     g_return_val_if_fail(VALID_VIDEO_CODEC_TYPE(codec_type), FALSE);
 
     type = GST_ELEMENT_FACTORY_TYPE_DECODER |
+           GST_ELEMENT_FACTORY_TYPE_PARSER |
            GST_ELEMENT_FACTORY_TYPE_MEDIA_VIDEO |
            GST_ELEMENT_FACTORY_TYPE_MEDIA_IMAGE;
     all_decoders = gst_element_factory_list_get_elements(type, GST_RANK_NONE);
-- 
2.13.0



More information about the Spice-devel mailing list