summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Alexander Steffens (heftig) <jan.steffens@ltnglobal.com>2020-10-01 11:22:51 +0200
committerTim-Philipp Müller <tim@centricular.com>2020-10-10 14:01:51 +0100
commited36a6320b523b698c0a0d4b11e588077f20a1a8 (patch)
tree451ca7eb6ab648d9ae8d58c3dabbed82426a9080
parent5be4e5da551a5b868e6172025b0d10d672d9c0f9 (diff)
downloadgstreamer-plugins-base-ed36a6320b523b698c0a0d4b11e588077f20a1a8.tar.gz
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: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/857>
-rw-r--r--gst/tcp/gstmultihandlesink.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gst/tcp/gstmultihandlesink.c b/gst/tcp/gstmultihandlesink.c
index f1d3d2c0f..7fbe2ae3a 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 */