summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEdward Hervey <bilboed@bilboed.com>2009-04-03 11:06:51 +0200
committerEdward Hervey <bilboed@bilboed.com>2009-04-03 11:06:51 +0200
commit706a2c11a25f485e35002d5f1465961613875428 (patch)
treeeccaa0677460f42a8716d298eab129bb14b29e71
parentaba7d8d78eec17ec5203a44eb93effae3ea602f8 (diff)
gnloperation: Check if the return-value-as-argument is valid.
-rw-r--r--gnl/gnloperation.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gnl/gnloperation.c b/gnl/gnloperation.c
index c81a2a5..0de54f2 100644
--- a/gnl/gnloperation.c
+++ b/gnl/gnloperation.c
@@ -219,7 +219,7 @@ element_is_valid_filter (GstElement * element, gboolean * isdynamic)
if (template->direction == GST_PAD_SRC)
havesrc = TRUE;
else if (template->direction == GST_PAD_SINK) {
- if (!havesink && (template->presence == GST_PAD_REQUEST))
+ if (!havesink && (template->presence == GST_PAD_REQUEST) && isdynamic)
*isdynamic = TRUE;
havesink = TRUE;
}