[0.11] gst-plugins-base: playbin2: Use subset check instead of non-empty-intersection check to check if pads are compatible

Wim Taymans wtay at kemper.freedesktop.org
Tue Sep 6 06:32:11 PDT 2011


Module: gst-plugins-base
Branch: 0.11
Commit: e3530f434b688134fbfca787bb3006c1436dfa56
URL:    http://cgit.freedesktop.org/gstreamer/gst-plugins-base/commit/?id=e3530f434b688134fbfca787bb3006c1436dfa56

Author: Sebastian Dröge <sebastian.droege at collabora.co.uk>
Date:   Tue Sep  6 14:03:31 2011 +0200

playbin2: Use subset check instead of non-empty-intersection check to check if pads are compatible

---

 gst/playback/gstplaybin2.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/gst/playback/gstplaybin2.c b/gst/playback/gstplaybin2.c
index ace3037..20e24c2 100644
--- a/gst/playback/gstplaybin2.c
+++ b/gst/playback/gstplaybin2.c
@@ -3068,7 +3068,7 @@ autoplug_continue_cb (GstElement * element, GstPad * pad, GstCaps * caps,
     gst_object_unref (sinkpad);
   } else {
     GstCaps *subcaps = gst_subtitle_overlay_create_factory_caps ();
-    ret = !gst_caps_can_intersect (caps, subcaps);
+    ret = !gst_caps_is_subset (caps, subcaps);
     gst_caps_unref (subcaps);
   }
   /* If autoplugging can stop don't do additional checks */



More information about the gstreamer-commits mailing list