Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/655>
if (sinkpad == NULL)
goto error;
- if (is_subtitle_caps (caps)) {
+ if (caps && !gst_caps_is_empty (caps) && !gst_caps_is_any (caps)
+ && is_subtitle_caps (caps)) {
/* Subtitle streams are sparse and may not provide any information - don't
* wait for data to preroll */
ps->probe_id =
dc->priv->pending_subtitle_pads++;
}
- gst_caps_unref (caps);
+ if (caps)
+ gst_caps_unref (caps);
gst_bin_add_many (dc->priv->pipeline, ps->queue, ps->sink, NULL);