From c272a5e1a5c08cfa43ea6af4783f9a2d125f2408 Mon Sep 17 00:00:00 2001 From: "Jan Alexander Steffens (heftig)" Date: Thu, 1 Oct 2020 11:22:51 +0200 Subject: [PATCH] multihandlesink: Don't pass NULL caps to gst_caps_is_equal Apparently the sinkpad caps can get cleared when shutting down the pipeline while the sink is working, provoking a critical warning. Part-of: --- gst/tcp/gstmultihandlesink.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gst/tcp/gstmultihandlesink.c b/gst/tcp/gstmultihandlesink.c index f1d3d2c0fe..7fbe2ae3a9 100644 --- a/gst/tcp/gstmultihandlesink.c +++ b/gst/tcp/gstmultihandlesink.c @@ -966,7 +966,7 @@ gst_multi_handle_sink_client_queue_buffer (GstMultiHandleSink * mhsink, } } else { /* there were previous caps recorded, so compare */ - if (!gst_caps_is_equal (caps, mhclient->caps)) { + if (caps && !gst_caps_is_equal (caps, mhclient->caps)) { const GValue *sh1, *sh2; /* caps are not equal, but could still have the same streamheader */