[gst-cvs] gnonlin: gnloperation: Check if the return-value-as-argument is valid.
Edward Hervey
bilboed at kemper.freedesktop.org
Fri Apr 3 02:08:58 PDT 2009
Module: gnonlin
Branch: master
Commit: 706a2c11a25f485e35002d5f1465961613875428
URL: http://cgit.freedesktop.org/gstreamer/gnonlin/commit/?id=706a2c11a25f485e35002d5f1465961613875428
Author: Edward Hervey <bilboed at bilboed.com>
Date: Fri Apr 3 11:06:51 2009 +0200
gnloperation: Check if the return-value-as-argument is valid.
---
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;
}
More information about the Gstreamer-commits
mailing list