[gst-cvs] gst-plugins-base: playbin2: blacklist subpictures for now

Wim Taymans wtay at kemper.freedesktop.org
Tue Mar 24 04:24:42 PDT 2009


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

Author: Wim Taymans <wim.taymans at collabora.co.uk>
Date:   Tue Mar 24 12:22:37 2009 +0100

playbin2: blacklist subpictures for now

Blacklist the subpictures until we add support for them.
Add some small debug info.
See #576408.

---

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

diff --git a/gst/playback/gstplaybin2.c b/gst/playback/gstplaybin2.c
index 6f08c33..f5c7f70 100644
--- a/gst/playback/gstplaybin2.c
+++ b/gst/playback/gstplaybin2.c
@@ -1708,6 +1708,11 @@ pad_added_cb (GstElement * decodebin, GstPad * pad, GstSourceGroup * group)
       "pad %s:%s with caps %" GST_PTR_FORMAT " added in group %p",
       GST_DEBUG_PAD_NAME (pad), caps, group);
 
+  for (i = 0; blacklisted_mimes[i]; i++) {
+    if (!strcmp (name, blacklisted_mimes[i]))
+      goto blacklisted_type;
+  }
+
   /* major type of the pad, this determines the selector to use */
   for (i = 0; i < GST_PLAY_SINK_TYPE_LAST; i++) {
     if (g_str_has_prefix (name, group->selector[i].media)) {
@@ -1800,6 +1805,12 @@ done:
   return;
 
   /* ERRORS */
+blacklisted_type:
+  {
+    GST_WARNING_OBJECT (playbin, "blacklisted type %s for pad %s:%s",
+        name, GST_DEBUG_PAD_NAME (pad));
+    goto done;
+  }
 unknown_type:
   {
     GST_ERROR_OBJECT (playbin, "unknown type %s for pad %s:%s",
@@ -2177,6 +2188,8 @@ activate_group (GstPlayBin * playbin, GstSourceGroup * group)
   g_return_val_if_fail (group->valid, FALSE);
   g_return_val_if_fail (!group->active, FALSE);
 
+  GST_DEBUG_OBJECT (playbin, "activating group %p", group);
+
   GST_SOURCE_GROUP_LOCK (group);
   if (group->uridecodebin) {
     GST_DEBUG_OBJECT (playbin, "reusing existing uridecodebin");





More information about the Gstreamer-commits mailing list