Skip to content

program: Implement a GTK UI for the RTSP server

Nicolas Dufresne requested to merge gtk-server into main

Work in progress, the server app starts fine, though, when a client get connected, the kernel crash atm. No AI integration yet, I wanted to get the base in first.

cc @ocrete @denis.shimizu @medel

p.s. unixfdsrc is doing an allocation query before pushing the caps, which crash the encoder, to fix:

 diff --git a/subprojects/gst-plugins-bad/sys/v4l2codecs/gstv4l2codech264enc.c b/subprojects/gst-plugins-bad/sys/v4l2codecs/gstv4l2codech264enc.c
index 0a195c8..52372ed 100644
--- a/subprojects/gst-plugins-bad/sys/v4l2codecs/gstv4l2codech264enc.c
+++ b/subprojects/gst-plugins-bad/sys/v4l2codecs/gstv4l2codech264enc.c
@@ -264,11 +264,13 @@ gst_v4l2_codec_h264_enc_propose_allocation (GstVideoEncoder * encoder,
 
   gst_query_parse_allocation (query, NULL, &need_pool);
 
-  if (need_pool)
-    pool = gst_v4l2_codec_pool_new (self->sink_allocator, &self->vinfo);
+  if (self->sink_allocator) {
+    if (need_pool)
+      pool = gst_v4l2_codec_pool_new (self->sink_allocator, &self->vinfo);
 
-  gst_query_add_allocation_pool (query, GST_BUFFER_POOL (pool),
-      self->vinfo.size, 2, 0);
+    gst_query_add_allocation_pool (query, GST_BUFFER_POOL (pool),
+        self->vinfo.size, 2, 0);
+  }
   gst_query_add_allocation_meta (query, GST_VIDEO_META_API_TYPE, NULL);
 
   return GST_VIDEO_ENCODER_CLASS (parent_class)->propose_allocation (encoder,
Edited by Nicolas Dufresne

Merge request reports