diff options
author | Edward Hervey <bilboed@bilboed.com> | 2009-04-03 11:06:51 +0200 |
---|---|---|
committer | Edward Hervey <bilboed@bilboed.com> | 2009-04-03 11:06:51 +0200 |
commit | 706a2c11a25f485e35002d5f1465961613875428 (patch) | |
tree | eccaa0677460f42a8716d298eab129bb14b29e71 /gnl/gnloperation.c | |
parent | aba7d8d78eec17ec5203a44eb93effae3ea602f8 (diff) |
gnloperation: Check if the return-value-as-argument is valid.
Diffstat (limited to 'gnl/gnloperation.c')
-rw-r--r-- | gnl/gnloperation.c | 2 |
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; } |