[gnome-network-displays] wfd-media-factory: Do not force I420 format for vaapipostproc



commit 7d67e00224730adaaeb0e22a02da774ba1f1adb1
Author: Benjamin Berg <bberg redhat com>
Date:   Tue Apr 20 16:33:52 2021 +0200

    wfd-media-factory: Do not force I420 format for vaapipostproc
    
    The constraint-baseline and baseline profiles already support only the
    4:2:0 format. As such, there should be no need to enforce it, and even
    if there was we should only enforce it in the output rather than the
    input.

 src/wfd/wfd-media-factory.c | 3 ---
 1 file changed, 3 deletions(-)
---
diff --git a/src/wfd/wfd-media-factory.c b/src/wfd/wfd-media-factory.c
index 7e78c25..75f9f58 100644
--- a/src/wfd/wfd-media-factory.c
+++ b/src/wfd/wfd-media-factory.c
@@ -239,9 +239,6 @@ wfd_media_factory_create_element (GstRTSPMediaFactory *factory, const GstRTSPUrl
         encoder = gst_bin_new ("wfd-encoder-bin");
 
         vaapi_convert = gst_element_factory_make ("vaapipostproc", "wfd-vaapi-convert");
-        g_object_set (vaapi_convert,
-                      "format", 2, /* Force I420 */
-                      NULL);
         success &= gst_bin_add (GST_BIN (encoder), vaapi_convert);
 
         vaapi_encoder = gst_element_factory_make ("vaapih264enc", "wfd-encoder");


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]