mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-28 20:51:13 +00:00
playsinkconvertbin: Use gst_caps_merge() instead of gst_caps_union()
This keeps the caps order and is more efficient.
This commit is contained in:
parent
7559fb29a4
commit
6e9a302eca
1 changed files with 2 additions and 2 deletions
|
@ -378,8 +378,8 @@ gst_play_sink_convert_bin_getcaps (GstPad * pad)
|
|||
GstCaps *peer_caps = gst_pad_get_caps_reffed (peer);
|
||||
gst_object_unref (peer);
|
||||
if (self->converter_caps) {
|
||||
ret = gst_caps_union (peer_caps, self->converter_caps);
|
||||
gst_caps_unref (peer_caps);
|
||||
gst_caps_merge (peer_caps, gst_caps_ref (self->converter_caps));
|
||||
ret = peer_caps;
|
||||
} else {
|
||||
ret = peer_caps;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue