From: Jan S. <th...@us...> - 2003-11-06 16:30:45
|
CVS Root: /cvsroot/gstreamer Module: gstreamer Changes by: thaytan Date: Thu Nov 06 2003 08:30:44 PST Log message: Fix a crash when unlinking Ghost pads which was included in the reversion of error changes. Modified files: gst : gstpad.c Links: http://cvs.sf.net/cgi-bin/viewcvs.cgi/gstreamer/gstreamer/gst/gstpad.c.diff?r1=1.235&r2=1.236 ====Begin Diffs==== Index: gstpad.c =================================================================== RCS file: /cvsroot/gstreamer/gstreamer/gst/gstpad.c,v retrieving revision 1.235 retrieving revision 1.236 diff -u -d -r1.235 -r1.236 --- gstpad.c 5 Nov 2003 01:35:32 -0000 1.235 +++ gstpad.c 6 Nov 2003 16:30:32 -0000 1.236 @@ -862,11 +862,11 @@ g_return_if_fail ((GST_RPAD_DIRECTION (realsrc) == GST_PAD_SRC) && (GST_RPAD_DIRECTION (realsink) == GST_PAD_SINK)); - if (GST_RPAD_UNLINKFUNC (srcpad)) { - GST_RPAD_UNLINKFUNC (srcpad) (srcpad); + if (GST_RPAD_UNLINKFUNC (realsrc)) { + GST_RPAD_UNLINKFUNC (realsrc) (GST_PAD_CAST (realsrc)); } - if (GST_RPAD_UNLINKFUNC (sinkpad)) { - GST_RPAD_UNLINKFUNC (sinkpad) (sinkpad); + if (GST_RPAD_UNLINKFUNC (realsink)) { + GST_RPAD_UNLINKFUNC (realsink) (GST_PAD_CAST (realsink)); } /* get the schedulers before we unlink */ |