fix 'invalid cast' warning

Original commit message from CVS:
fix 'invalid cast' warning
This commit is contained in:
Benjamin Otte 2002-04-20 12:31:41 +00:00
parent 8cd991a9d6
commit cd8a89261c

View file

@ -587,7 +587,7 @@ gst_spider_find_element_to_plug (GstElement *src, GstElementFactory *fac, GstPad
{
GstPad *pad = (GstPad *) GST_PAD_REALIZE (padlist->data);
/* is the pad on the right side and is it connected? */
if ((GST_PAD_DIRECTION (pad) == dir) && (pad = GST_PAD (GST_RPAD_PEER (pad))))
if ((GST_PAD_DIRECTION (pad) == dir) && (pad = (GstPad *) (GST_RPAD_PEER (pad))))
{
/* is the element the pad is connected to of the right type? */
GstElement *element = GST_PAD_PARENT (pad);