mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
Fix a crash when unlinking Ghost pads which was included in the reversion of error changes.
Original commit message from CVS: Fix a crash when unlinking Ghost pads which was included in the reversion of error changes.
This commit is contained in:
parent
94f7a8ee6d
commit
458e4ada59
1 changed files with 4 additions and 4 deletions
|
@ -862,11 +862,11 @@ gst_pad_unlink (GstPad *srcpad,
|
||||||
g_return_if_fail ((GST_RPAD_DIRECTION (realsrc) == GST_PAD_SRC) &&
|
g_return_if_fail ((GST_RPAD_DIRECTION (realsrc) == GST_PAD_SRC) &&
|
||||||
(GST_RPAD_DIRECTION (realsink) == GST_PAD_SINK));
|
(GST_RPAD_DIRECTION (realsink) == GST_PAD_SINK));
|
||||||
|
|
||||||
if (GST_RPAD_UNLINKFUNC (srcpad)) {
|
if (GST_RPAD_UNLINKFUNC (realsrc)) {
|
||||||
GST_RPAD_UNLINKFUNC (srcpad) (srcpad);
|
GST_RPAD_UNLINKFUNC (realsrc) (GST_PAD_CAST (realsrc));
|
||||||
}
|
}
|
||||||
if (GST_RPAD_UNLINKFUNC (sinkpad)) {
|
if (GST_RPAD_UNLINKFUNC (realsink)) {
|
||||||
GST_RPAD_UNLINKFUNC (sinkpad) (sinkpad);
|
GST_RPAD_UNLINKFUNC (realsink) (GST_PAD_CAST (realsink));
|
||||||
}
|
}
|
||||||
|
|
||||||
/* get the schedulers before we unlink */
|
/* get the schedulers before we unlink */
|
||||||
|
|
Loading…
Reference in a new issue