mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-30 12:49:40 +00:00
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:
parent
28ff6b377d
commit
c272a5e1a5
1 changed files with 1 additions and 1 deletions
|
@ -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 */
|
||||
|
|
Loading…
Reference in a new issue