playsinkconvertbin: Fix stupid mistake in last commit

This commit is contained in:
Sebastian Dröge 2011-11-28 19:06:57 +01:00
parent c1b1e2b44e
commit f179213aa0

View file

@ -391,7 +391,7 @@ gst_play_sink_convert_bin_getcaps (GstPad * pad)
if (peer) {
GstCaps *peer_caps = gst_pad_get_caps_reffed (peer);
gst_object_unref (peer);
if (self->converter_caps && is_raw_caps (peer_caps)) {
if (self->converter_caps && is_raw_caps (peer_caps, self->audio)) {
peer_caps = gst_caps_make_writable (peer_caps);
gst_caps_merge (peer_caps, gst_caps_ref (self->converter_caps));
ret = peer_caps;