playsinkconvertbin: Fix stupid mistake in last commit
authorSebastian Dröge <sebastian.droege@collabora.co.uk>
Mon, 28 Nov 2011 18:06:57 +0000 (19:06 +0100)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Mon, 28 Nov 2011 18:06:57 +0000 (19:06 +0100)
gst/playback/gstplaysinkconvertbin.c

index 4f707d7d1fab0445e71ab33cf664e3d0e7257264..b3655264f303adf03fbdb2e7fda2a97e77abb4f2 100644 (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;