GST_DEBUG_ENTER ("(%s:%s)", GST_DEBUG_PAD_NAME (pad));
- g_return_if_fail (peer != NULL);
+ g_return_if_fail (GST_PAD_DIRECTION (pad) != GST_PAD_SRC);
+ g_return_if_fail (peer != NULL);
if (peer->pushfunc) {
GST_DEBUG (GST_CAT_DATAFLOW, "calling pushfunc &%s of peer pad %s:%s\n",
GST_DEBUG_ENTER("(%s:%s)",GST_DEBUG_PAD_NAME(pad));
+ g_return_val_if_fail (GST_PAD_DIRECTION (pad) != GST_PAD_SINK, NULL);
g_return_val_if_fail (peer != NULL, NULL);
if (peer->pullfunc) {
{
GstRealPad *peer = GST_RPAD_PEER(pad);
+ g_return_val_if_fail (GST_PAD_DIRECTION (pad) != GST_PAD_SINK, NULL);
g_return_val_if_fail (peer != NULL, NULL);
GST_DEBUG_ENTER("(%s:%s,%d,%lld,%lld)",GST_DEBUG_PAD_NAME(pad),type,offset,len);