mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-04 19:01:22 +00:00
use gst_caps_merge instead of gst_caps_union
This commit is contained in:
parent
2d9756c703
commit
3fae1ff05d
1 changed files with 3 additions and 6 deletions
|
@ -201,13 +201,10 @@ rsndec_factory_filter (GstPluginFeature * feature, RsnDecFactoryFilterCtx * ctx)
|
||||||
|
|
||||||
/* check if the intersection is empty */
|
/* check if the intersection is empty */
|
||||||
if (!gst_caps_is_empty (intersect)) {
|
if (!gst_caps_is_empty (intersect)) {
|
||||||
GstCaps *new_dec_caps;
|
|
||||||
/* non empty intersection, we can use this element */
|
/* non empty intersection, we can use this element */
|
||||||
can_sink = TRUE;
|
can_sink = TRUE;
|
||||||
new_dec_caps = gst_caps_union (ctx->decoder_caps, intersect);
|
ctx->decoder_caps = gst_caps_merge (ctx->decoder_caps, intersect);
|
||||||
gst_caps_unref (ctx->decoder_caps);
|
} else
|
||||||
ctx->decoder_caps = new_dec_caps;
|
|
||||||
}
|
|
||||||
gst_caps_unref (intersect);
|
gst_caps_unref (intersect);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue