If _transform_caps () returns NULL, the basetransform _transform_caps
tries to call gst_caps_is_subset () with a NULL subset which hits an
assertion.
gst_caps_append_structure (other_caps, new_structure);
}
- if (gst_caps_is_empty (other_caps)) {
- gst_caps_unref (other_caps);
- other_caps = NULL;
- }
-
- if (other_caps && filter_caps) {
+ if (!gst_caps_is_empty (other_caps) && filter_caps) {
GstCaps *tmp = gst_caps_intersect_full (filter_caps, other_caps,
GST_CAPS_INTERSECT_FIRST);
gst_caps_replace (&other_caps, tmp);