gst/gstelement.c: Allow unlinking ghostpads using gst_element_unlink(), which fixes #301331.

Original commit message from CVS:
Reviewed by:  Ronald S. Bultje  <rbultje@ronald.bitfreak.net>
* gst/gstelement.c: (gst_element_unlink):
Allow unlinking ghostpads using gst_element_unlink(), which
fixes #301331.
This commit is contained in:
Ronald S. Bultje 2005-04-22 15:08:02 +00:00
parent 970c2f3ff6
commit 20e6e96160
2 changed files with 9 additions and 1 deletions

View file

@ -1,3 +1,11 @@
2005-04-22 Wouter Paesen <wouter@kangaroot.net>
Reviewed by: Ronald S. Bultje <rbultje@ronald.bitfreak.net>
* gst/gstelement.c: (gst_element_unlink):
Allow unlinking ghostpads using gst_element_unlink(), which
fixes #301331.
2005-04-22 Ronald S. Bultje <rbultje@ronald.bitfreak.net>
* gst/elements/gsttypefindelement.c:

View file

@ -2231,7 +2231,7 @@ gst_element_unlink (GstElement * src, GstElement * dest)
pad = GST_PAD (srcpads->data);
/* we only care about real src pads */
if (GST_IS_REAL_PAD (pad) && GST_PAD_IS_SRC (pad)) {
if (GST_PAD_IS_SRC (pad)) {
GstPad *peerpad = GST_PAD_PEER (pad);
/* see if the pad is connected and is really a pad