[gnome-network-displays] media-factory: Do not force alignment=nal



commit 905d7fa9bc233c681c5c57e8e4d5db26563b415e
Author: Benjamin Berg <bberg redhat com>
Date:   Tue Apr 20 16:36:14 2021 +0200

    media-factory: Do not force alignment=nal
    
    Nicolas Dufresne is saying that this should not be needed and may cause
    weird code-paths to be hit. As such, remove the alignment=nal filter
    from the capabilities.

 src/wfd/wfd-media-factory.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/src/wfd/wfd-media-factory.c b/src/wfd/wfd-media-factory.c
index 75f9f58..f791ee8 100644
--- a/src/wfd/wfd-media-factory.c
+++ b/src/wfd/wfd-media-factory.c
@@ -298,9 +298,9 @@ wfd_media_factory_create_element (GstRTSPMediaFactory *factory, const GstRTSPUrl
                 NULL);
 
   /* Permit both constrained-baseline and baseline. Would constrained-baseline be sufficient? */
-  caps = gst_caps_from_string 
("video/x-h264,alignment=nal,stream-format=byte-stream,profile=constrained-baseline");
+  caps = gst_caps_from_string ("video/x-h264,stream-format=byte-stream,profile=constrained-baseline");
   gst_caps_append (caps,
-                   gst_caps_from_string 
("video/x-h264,alignment=nal,stream-format=byte-stream,profile=baseline"));
+                   gst_caps_from_string ("video/x-h264,stream-format=byte-stream,profile=baseline"));
   codecfilter = gst_element_factory_make ("capsfilter", "wfd-codecfilter");
   g_object_set (codecfilter,
                 "caps", caps,
@@ -578,14 +578,14 @@ wfd_configure_media_element (GstBin *bin, WfdParams *params)
 
   if (profile == WFD_H264_PROFILE_HIGH)
     {
-      caps_codecfilter = gst_caps_from_string 
("video/x-h264,alignment=nal,stream-format=byte-stream,profile=high");
+      caps_codecfilter = gst_caps_from_string ("video/x-h264,stream-format=byte-stream,profile=high");
     }
   else
     {
       /* Permit both constrained-baseline and baseline. Would constrained-baseline be sufficient? */
-      caps_codecfilter = gst_caps_from_string 
("video/x-h264,alignment=nal,stream-format=byte-stream,profile=constrained-baseline");
+      caps_codecfilter = gst_caps_from_string 
("video/x-h264,stream-format=byte-stream,profile=constrained-baseline");
       gst_caps_append (caps_codecfilter,
-                       gst_caps_from_string 
("video/x-h264,alignment=nal,stream-format=byte-stream,profile=baseline"));
+                       gst_caps_from_string ("video/x-h264,stream-format=byte-stream,profile=baseline"));
     }
 
   codecfilter = gst_bin_get_by_name (bin, "wfd-codecfilter");


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