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/842>
This commit is contained in:
Jan Alexander Steffens (heftig) 2020-10-01 11:22:51 +02:00 committed by GStreamer Merge Bot
parent 28ff6b377d
commit c272a5e1a5

View file

@ -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 */