[prev in list] [next in list] [prev in thread] [next in thread]
List: gstreamer-cvs
Subject: [gst-cvs] gnonlin: gnlcomposition: Only remove top-level pad if
From: bilboed () kemper ! freedesktop ! org (Edward Hervey)
Date: 2009-07-29 18:41:59
Message-ID: 20090729184159.677A610051 () kemper ! freedesktop ! org
[Download RAW message or body]
Module: gnonlin
Branch: master
Commit: b7acab5e93611ad11f06f8646252e38fc8aa99c4
URL: http://cgit.freedesktop.org/gstreamer/gnonlin/commit/?id=b7acab5e93611ad11f06f8646252e38fc8aa99c4
Author: Edward Hervey <bilboed@bilboed.com>
Date: Wed Jul 29 20:40:25 2009 +0200
gnlcomposition: Only remove top-level pad if removed pad is a source pad.
"Wow, not all objects in the timeline are sources ?"
---
gnl/gnlcomposition.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/gnl/gnlcomposition.c b/gnl/gnlcomposition.c
index 0cb3929..ae13b1c 100644
--- a/gnl/gnlcomposition.c
+++ b/gnl/gnlcomposition.c
@@ -2289,8 +2289,10 @@ static void
object_pad_removed (GnlObject * object, GstPad * pad, GnlComposition * comp)
{
GST_DEBUG_OBJECT (comp, "pad %s:%s was removed", GST_DEBUG_PAD_NAME (pad));
+
/* remove ghostpad if it's the current top stack object */
- if (comp->priv->current && ((GnlObject *) comp->priv->current->data == object)
+ if (GST_PAD_IS_SRC (pad) && comp->priv->current
+ && ((GnlObject *) comp->priv->current->data == object)
&& comp->priv->ghostpad) {
GST_DEBUG_OBJECT (comp, "Removing ghostpad");
gnl_object_remove_ghost_pad ((GnlObject *) comp, comp->priv->ghostpad);
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
gstreamer-cvs mailing list
gstreamer-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gstreamer-cvs
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic