playsinkconvertbin: Only return the converter caps if we actually have raw caps

Fixes bug #664818 (hopefully).
This commit is contained in:
Sebastian Dröge 2011-11-28 19:03:54 +01:00
parent 4c52f4e625
commit c1b1e2b44e

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) {
if (self->converter_caps && is_raw_caps (peer_caps)) {
peer_caps = gst_caps_make_writable (peer_caps);
gst_caps_merge (peer_caps, gst_caps_ref (self->converter_caps));
ret = peer_caps;